Skip to contents

Convert Ethnicity to Numeric Code

Usage

ethnicn(ethnicc)

Arguments

ethnicc

Ethnic character

Value

the standard yspec numeric value for the inputted Ethnic character

Examples

ethnicn("HISPANIC OR LATINO") # 1
#> [1] 1

ethnicn("NOT HISPANIC OR LATINO") # 0
#> [1] 0

ethnicn("UNKNOWN") # -999
#> [1] -999