Skip to contents

Table 5.5 Deaths by region of death and site of occurrence

Variables needed per record:

- `dodyr`: Year of death.

- `death1c`: Region of death.

- `death1n`: Site of occurrence.

Usage

create_t5_5(
  data,
  date_var = "dodyr",
  data_year = NA,
  tablename = "Table_5_5",
  output_path = NULL
)

Arguments

data

data frame being used

date_var

occurrence data variable being used

data_year

year the data is for

tablename

name for csv output use _ instead of . for names

Value

data frame with tabulated results

Examples

death_data <- construct_sample_death_data()
death_data <- construct_year(death_data, date_col = "death1a", year_col = "dodyr")
table_5_5 <- create_t5_5(death_data, date_var= "dodyr", data_year = 2022)