With defaults all set of adding a year column for working with dates (the start of a year format yyyy-mm-dd
), rounding prevalence figures to whole numbers and splitting the age_bands
column which was merged from two rows in the original spreadsheet into two columns: age
and gender
.
Default output:
# default
tidy_smoking_long()
Turn off all defaults:
tidy_smoking_long(add_year = FALSE,
rounding = FALSE,
separate_cols = FALSE)