find_label_male {poputils} | R Documentation |
Identify Sex or Gender Labels Referring to Males
Description
Given labels for sex or gender, try to infer
which (if any) refer to males.
If no elements look like a label for males,
or if two or more elements do,
then return NULL
.
Usage
find_label_male(nms)
Arguments
nms |
A character vector |
Value
An element of nms
or NULL
.
See Also
find_label_female()
, find_var_sexgender()
Examples
find_label_male(c("Female", "Male")) ## one valid
find_label_male(c("0-4", "5-9")) ## none valid
find_label_male(c("male", "m")) ## two valid
[Package poputils version 0.3.1 Index]