Arguments
- x
input character representing female or male
Value
boolean representing female
See also
Other demographics:
ethnicn(),
is_american_native(),
is_asian(),
is_black(),
is_hispanic_or_latino(),
is_not_hispanic_or_latino(),
is_other(),
is_pacific_islander(),
is_unspecified(),
is_white(),
racen(),
sexf()
Examples
is_female("F")
#> [1] TRUE
is_female(c("MALE", "FEMALE"))
#> [1] FALSE TRUE
is_female(c(1, 0, -999))
#> Numeric input detected - assuming 1 = Female, 0 = Male.
#> [1] TRUE FALSE NA