makeAgeVars | R Documentation |
Function for making Age and AgeCat variables
makeAgeVars(dat, time2 = NULL, age_cut = NULL, birthdate = NULL)
dat |
A dataset |
time2 |
The name of a date variable that is used to calculate the Age variable using the
|
age_cut |
Vector of ages to make age categories, default is to use values from
|
birthdate |
Dataset of birthdates, if NULL it uses |
data.frame
hiv <- makeAgeVars(dat=getHIV(), age_cut=c(15, 20, 25, 30, 40, 50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.