Skip to contents

Table 4.9 Age-specific fertility rates by usual residence of mother, urban areas

Table 4.10 Age-specific fertility rates by usual residence of mother, rural areas

Usage

create_table_4_9_and_4_10(
  data,
  est_data,
  pops,
  data_year = NA,
  rural_urban = "urban",
  tablename = "Table_4_9",
  output_path = NULL
)

Arguments

data

data frame being used

est_data

data frame for estimate data

pops

population estimates

data_year

year of data

rural_urban

whether table is for urban or rural data

tablename

name for csv output use _ instead of . for names

output_path

The path to export the generated table

Value

data frame with tabulated result

Examples

t4.9 <- create_table_4_9_and_4_10(data = bth_data, est_data = bth_est, data_year = 2022,
                                 rural_urban = "urban", tablename = "Table_4_9")
#> Error: object 'bth_data' not found
t4.10 <- create_table_4_9_and_4_10(data = bth_data, est_data = bth_est, data_year = 2022,
                                 rural_urban = "rural", tablename = "Table_4_10")
#> Error: object 'bth_data' not found