get_births: Load births data, with projections from 1970 to 2050, without...

View source: R/get_births.R

get_birthsR Documentation

Load births data, with projections from 1970 to 2050, without sex disaggregation.

Description

get_births is a function that allows the user to get a demographic dataset of the number and rate of births based on the given parameters.

Usage

get_births(v_state = "National", v_year = 2021, year_groups = TRUE)

Arguments

v_state

Character vector specifying the state(s) that the function will return.

v_year

Numeric vector that specifies the year(s) to return. Must have numbers between 1970 and 2050. Default is 2021.

year_groups

Logical. Specifies whether to aggregate the output by year groups.

Value

A demographic dataset containing the selected year (group, when year_groups = TRUE), state, state code (CVE_GEO), the number of births and the birth rate in each row,

Examples

get_births(v_state = c("Aguascalientes", "Campeche"),
           v_year = c(1995, 2021, 2046),
           year_groups = TRUE)

get_births(v_state = "National",
           v_year = c(1985, 2005, 2046),
           year_groups= FALSE)


PADeCI/demogmx documentation built on Jan. 27, 2024, 6:43 a.m.