Description Usage Arguments Details
This API wrapper returns a dataframe of municipal populations and related variables for the years and municipalities selected.
1 2 | muni_hist(fips_list = "", year_list, county = "",
vars = "totalpopulation", totals = "yes")
|
fips_list |
Numeric FIPS code(s) for the municipality(ies). Leave blank and specify county to get all places in a county Defaults to blank |
year_list |
Numeric list of years between 1980 and 2015 |
county |
county FIPS number used to pull either parts of a muni or all munis in a county if fips_list is blank Defaults to Blank |
vars |
list of variables to pull includes: totalpopulation, householdpopulation, groupquarterspopulation, householdsize totalhousingunits, occupiedhousingunits, and vacanthousingunits Defaults to totalpopulation |
totals |
controls whether API returns totals or parts of municipalities Defaults to 'yes' to give totals not parts. |
Note: Selecting all of the counties can be done by providing 300 as the fips_list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.