Skip to contents

Removes ", nfd" or trailing zeroes from the end of ANZCO/ANZSIC labels or codes.

Usage

clean_nfd(vector)

Arguments

vector

A character vector or column containing ANZCO/ANZSIC names or codes.

Value

Returns the same character vector without "NFD" or trailing zeroes. Strings without "NFC" or trailing zeroes are unchanged.

See also

Other cleaning functions: clean_anzsco(), clean_anzsic(), clean_asced_foe(), clean_asced_qual()

Examples


clean_nfd("Furniture Manufacturing, nfd")
#> [1] "Furniture Manufacturing"

clean_nfd(c("Managers, nfd", "2510"))
#> [1] "Managers" "251"