Tidy ONS data into long form
tidy_smoking_long(add_year = TRUE, rounding = TRUE, separate_cols = TRUE)
add_year | Logical, add a column with a real date which is the beginning of the year. Default is to add this column |
---|---|
rounding | Logical, rounding the population values to whole numbers to reduce spurious accuracy. Default is to round to whole number |
separate_cols | Logical, separates the previously merged columns of gender and age to separate columns in long form. Default is to separate |
Data frame