find_var_time {poputils} | R Documentation |
Identify a Time Variable
Description
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
.
Usage
find_var_time(nms)
Arguments
nms |
A character vector |
Value
An element of nms
, or NULL
.
See Also
find_var_age()
, find_var_sexgender()
Examples
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
[Package poputils version 0.3.1 Index]