View source: R/3a_trialdata_analysis_input_functions.R
get_age_details | R Documentation |
Function to get the details of the age column
get_age_details(trialdata)
trialdata |
data containing individual level trial data |
expecting the data contains the information on age preferably column names "age", "dob" or "yob" or "date of birth". "year of birth", "birth year" If multiple column names match these, then first match will be chosen.
the name of the variable related to age and the unique contents if success, else error
get_age_details(data.frame("Age" = c(21, 15),
"arm" = c("control", "intervention")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.