get_asec | R Documentation |
get_asec()
loads
CPS ASEC
microdata using the Census API.
get_asec(
year,
vars,
key = get_key(),
show_url = FALSE,
tibble = TRUE,
convert = TRUE
)
year |
Year of data to retrieve. Years 1992 and on are currently supported. |
vars |
Character vector of variables to retrieve, where each vector element corresponds to the name of a single variable. Variable names can be given in uppercase or lowercase but are always made lowercase in the returned data. |
key |
Census API key.
Defaults to environment variable |
show_url |
If |
tibble |
If |
convert |
If |
A tibble or base data frame.
## Not run:
asec21 <- get_asec(2021, vars = c("marsupwt", "spm_poor"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.