Create Tables 3.11 or 3.12
create_t3.11_and_3.12.Rd
Table 3.11 Redistribution of live births with incomplete data on ‘age of mother’
Table 3.12 Redistribution of deaths with incomplete data on ‘age of decedent’
Usage
create_t3.11_and_3.12(
data,
date_var,
by_var,
topic = NA,
data_year = NA,
tablename = "Table_3_11",
output_path = NULL
)
Arguments
- data
data frame being used
- date_var
the occurrence year being used e.g. dobyr or dodyr
- by_var
what variable the data is being redistributed by
- topic
whether the table is births or deaths data
- data_year
The year to report on. Defaults to the last in the data.
- tablename
Name of the table to be saved as a csv file. Optional.
- output_path
The path to export the generated csv table. Optional.
Examples
t3.11 <- create_t3.11_and_3.12(bth_data, dobyr, data_year = 2022, by_var = fert_age_grp, tablename = "Table_3_11", topic = "births")
#> Error: object 'bth_data' not found
t3.12 <- create_t3.11_and_3.12(dth_data, dodyr, data_year = 2022, by_var = age_grp_80, tablename = "Table_3_12", topic = "deaths")
#> Error: object 'dth_data' not found