get_births_INEGI: Load births data, disaggregated by sex, from 1985 to 2020.

get_births_INEGIR Documentation

Load births data, disaggregated by sex, from 1985 to 2020.

Description

get_births_INEGI is a function that allows the user to get a demographic dataset of the number and rate of births based on the given parameters. This function returns the recorded births by INEGI and allows to specify the sex.

Usage

get_births_INEGI(
  v_state = "National",
  v_year = 2010,
  v_sex = c("Female", "Male", "Total"),
  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 1985 and 2020. Default is 2021.

v_sex

Vector selecting sex. Options: Female, Male and Total.

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), sex, the number of births the proportion of births (in relation to the total births in that year), and the birth rate.

Examples

get_births_INEGI(v_state = c("Aguascalientes", "Campeche"),
                 v_year = c(1995, 2005, 2015),
                 v_sex = "Male",
                 year_groups = TRUE)

get_births_INEGI(v_state = "National",
                 v_year = c(1985, 2005, 2015),
                 v_sex = "Total",
                 year_groups = FALSE)


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