Also returns numeric for single character Sex characters "F" and "M"
Arguments
- sex
Sex character
Value
the standard yspec numeric value for the inputted Sex character
See also
Other demographics:
ethnicn(),
is_american_native(),
is_asian(),
is_black(),
is_female(),
is_hispanic_or_latino(),
is_not_hispanic_or_latino(),
is_other(),
is_pacific_islander(),
is_unspecified(),
is_white(),
racen()
Examples
sexf("FEMALE") # 1
#> [1] 1
sexf("female") # 1
#> [1] 1
sexf("f") # 1
#> [1] 1
sexf("MALE") # 0
#> [1] 0
sexf("NOT SPECIFIED") # 0
#> [1] 0