Skip to contents

Takes character input and returns TRUE/FALSE if female/male

Usage

is_female(x)

Arguments

x

input character representing female or male

Value

boolean representing female

Examples

is_female("F")
#> [1] TRUE

is_female(c("MALE", "FEMALE"))
#> [1] FALSE  TRUE