Skip to contents

Table 4.1 Summary statistics on fertility by year of occurrence

Usage

create_t4.1(
  data,
  est_data,
  pops,
  date_var = "dobyr",
  data_year = NA,
  tablename = "Table_4_1",
  output_path = NULL
)

Arguments

data

births data frame

est_data

estimate data frame

pops

population data frame

date_var

variable for year

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.

Value

data frame with tabulated results

Examples

t4.1 <- create_t4.1(bth_data, est_data, pops, date_var = dobyr, tablename = "Table_4_1")
#> Error: object 'bth_data' not found