Description Usage Arguments Author(s) See Also
View source: R/age_generator.koch6.R
Use date of birth and date of starting treatment to calculate age at baseline. Takes data frame with date of birth and start of treatment date to generate age variable in years.
1 2 3 | ## S3 method for class 'koch6'
age_generator(x, categorise = FALSE,
paediatric = FALSE, rm_orig = TRUE)
|
x |
data frame containing Koch 6 admission variables |
categorise |
logical - generate additional factor age variable |
paediatric |
logical - generate additional paediatric age factor variable |
rm_orig |
remove original variables - TRUE or FALSE |
Jay Achar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.