find_var_age | R Documentation |
Find the element of nms
that looks like an age variable.
If no elements look like an age variable, or if
two or more elements do,
then return NULL
.
find_var_age(nms)
nms |
A character vector |
An element of nms
, or NULL
.
find_var_time()
, find_var_sexgender()
find_var_age(c("Sex", "Year", "AgeGroup", NA)) ## one valid
find_var_age(c("Sex", "Year")) ## none valid
find_var_age(c("age", "age.years")) ## two valid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.