Description Usage Arguments Details Value Examples
Convenience function for splitting a span of years based on availability in the Census ACS API
1 | make_years_for_trend(start_year, end_year)
|
start_year |
A four-digit integer for the first year in the desired time period |
end_year |
A four-digit integer for the last year in the desired time period |
The Census ACS API is currently only available for 2012 onward. This makes it tricky to pull data for a longer period, such as 2010 to 2015. The type
column in the returned dataframe is useful for iterating over years that must be downloaded as csv files, versus those available from the API.
Returns a tbl
1 | years <- make_years_for_trend(2010, 2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.