Learn R Programming

packDAMipd (version 0.2.0)

get_age_details: Function to get the details of the age column

Description

Function to get the details of the age column

Usage

get_age_details(trialdata)

Arguments

trialdata,

data containing individual level trial data

Value

the name of the variable related to age and the unique contents if success, else error

Details

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.

Examples

Run this code
# NOT RUN {
get_age_details(data.frame("Age" = c(21, 15),
"arm" = c("control", "intervention")))
# }

Run the code above in your browser using DataLab