View source: R/get-decennial-recs.R
get_decennial_msa | R Documentation |
Generate decennial estimates for multiple tables by MSA(s).
get_decennial_msa(table_codes, year, fips = NULL)
table_codes |
A character string or vector of Census table codes. |
year |
Numeric value. A decennial year equal or greater than 2010 |
fips |
Character value. Single code or vector of MSA fips codes. |
a tibble of decennial estimates by MSA(s) for selected table codes. Does not include variable names.
Christy Lam
Sys.getenv("CENSUS_API_KEY") get_decennial_msa(table_codes = c("H001"), year = 2010) get_decennial_msa(table_codes = c("H001", "P001"), year = 2010, fips = c('42660', "28420")) get_decennial_msa(table_codes = c("H001"), year = 2010, fips = c('42660'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.