Table 6.1 Leading causes of death by broad age group and sex
Usage
create_t6.1(
data,
cause,
date_var = "dodyr",
data_year = NA,
tablename = "Table_6_1",
output_path = NULL
)
Arguments
- data
data frame being used
- cause
cause of death data frame
- date_var
column containing the year of event occurence
- data_year
year of data
- tablename
name of the table being saved as a csv file
- output_path
The path to export the generated table
Value
Returns data frame with tabulated results
Examples
t6.1 <- create_t6.1(data = dth_data, cause = cause_dict, date_var = dodyr, data_year = 2022)
#> Error: object 'dth_data' not found