Description Usage Arguments Value
Get census estimates for counties by state
1 2 3 4 5 6 | fetch_census_estimates(
state = "all",
simplify = TRUE,
save_file = TRUE,
path = stcovid_path("census")
)
|
state |
character, the name of the state or 'all' |
simplify |
logical, if TRUE simplify into a familiar form |
save_file |
logical if TRUE save as geojson, ignored if simplify = FALSE |
path |
character, the path to save the file |
sf table of county population, density, geoid and geometry.
If state
is 'all' then iterate through all states and return
a list of sf tables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.