Skip to contents

Check if Ethnicity is Not Hispanic or Latino

Usage

is_not_hispanic_or_latino(x)

Arguments

x

input character representing ethnicity

Value

boolean representing Ethnic == "Not Hispanic or Latino"

Examples

is_not_hispanic_or_latino("HISPANIC OR LATINO")
#> [1] FALSE

is_not_hispanic_or_latino("NOT HISPANIC OR LATINO")
#> [1] TRUE

is_not_hispanic_or_latino("UNKNOWN")
#> [1] FALSE

is_not_hispanic_or_latino(0)
#> Numeric input detected - assuming 1 = Hispanic or Latino, 0 = Not Hispanic or Latino, -999 = Missing.
#> [1] TRUE