R/sample_age.R
sample_age.Rd
Create fictional ages based on birth date and survey date
sample_age(start_date, end_date = Sys.Date(), error = TRUE)
date or vector of dates; birth date or other origin date
dateor vector of dates; survey date or other completion date
boolean; should errors be included in the ages?
sample_age(start_date = "1900-01-01", end_date = "1960-07-31", error = FALSE) #> [1] 60