Skip to contents

Checks that the gender argument provided is formatted correctly for ecacr processing

Usage

genderIsValid(gender)

Arguments

gender

gender to check

Value

TRUE if gender is formatted correctly, FALSE otherwise

Examples

genderIsValid(gender="women") # TRUE
#> Error in genderIsValid(gender = "women"): could not find function "genderIsValid"
genderIsValid(gender="WOMEN") # FALSE
#> Error in genderIsValid(gender = "WOMEN"): could not find function "genderIsValid"
genderIsValid(gender="W") # FALSE
#> Error in genderIsValid(gender = "W"): could not find function "genderIsValid"