Skip to contents

Takes character input and returns standard yspec numeric value for Ethnic

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