powered by
Find the element of nms that looks like an time variable. If no elements look like a time variable, or if two or more elements do, then return NULL.
nms
NULL
find_var_time(nms)
An element of nms, or NULL.
A character vector
find_var_age(), find_var_sexgender()
find_var_age()
find_var_sexgender()
find_var_time(c("Sex", "Year", "AgeGroup", NA)) ## one valid find_var_time(c("Sex", "Region")) ## none valid find_var_time(c("time", "year")) ## two valid
Run the code above in your browser using DataLab