Description Usage Arguments Value
creates the URL with which to query the Census API for the specified variables and geographic levels. Only functional for the decennial censuses.
1 2 | createCensusURL(year, vars, tract = "all", county = "all", state = "all",
level = "county", key)
|
year |
must be 1990, 2000 of 2010 |
vars |
a string or vector of strings specifying which variables to download. Must be the exact variable codes. |
tract |
a string or vector of strings specifying for which tracts to download data. Must be exact FIPS code. |
county |
a string or vector of strings specifying for which counties to download data. Must be exact FIPS code |
state |
FIPS code or vector of FIPS codes specifying for which states to download data. |
level |
can be either 'county' or 'tract', specifying at which geographic level to download data |
key |
your personal API key |
a string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.