View source: R/utlede_variabler.R
utlede_alder | R Documentation |
Age in years at time of procedure. Calculated from variables
birth_date
and dato_pros
.
utlede_alder(df)
df |
data.frame with AblaNor data. Must contain variables
|
Returns df
with one new variable: alder (= age in years)
x <- data.frame(
birth_date = as.Date(rep("1951-12-30",3), format = "%Y-%m-%d"),
dato_pros = as.Date(c("2021-05-29", "2021-12-29", "2021-12-30"),
format = "%Y-%m-%d"))
ablanor::utlede_alder(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.