get_births_INEGI | R Documentation |
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.
get_births_INEGI(
v_state = "National",
v_year = 2010,
v_sex = c("Female", "Male", "Total"),
year_groups = TRUE
)
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. |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.