Skip to contents

Creates Table 3.4 and 3.6

Usage

create_t3.4_and_3.6(
  data,
  est_data,
  topic = NA,
  date_var = "dobyr",
  data_year = NA,
  tablename = "Table_3_4",
  output_path = NULL
)

Arguments

data

data frame being used

est_data

data frame of estimated data being used

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.

by_var

the occurrence year being used e.g. dobyr or dodyr

Value

data frames for tabulated versions of Table 3.4 and 3.6

Examples

t3.4 <- create_t3.4_to_3.7(bth_data, bth_est, dobyr, topic = "births", tablename = "Table_3_4")
#> Error in create_t3.4_to_3.7(bth_data, bth_est, dobyr, topic = "births",     tablename = "Table_3_4"): could not find function "create_t3.4_to_3.7"