get_births | R Documentation |
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.
get_births(v_state = "National", v_year = 2021, 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 1970 and 2050. Default is 2021. |
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),
the number of births and the birth rate in each row,
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.