| us_cities | R Documentation |
This function returns an sf object of cities (or populated places)
with their populations and latitudes and longitudes. Population data is taken
from the U.S. Census.
us_cities(map_date = NULL, states = NULL)
map_date |
If |
states |
A character vector of state or territory names or
abbreviations. Only boundaries for those states/territories will be
returned. If |
An sf object.
The data was compiled by Erik Steiner and Jason Heppler at the Center for Spatial and Textual Analysis, Stanford University. See their the description of the data for a fuller accounting of how the data was gathered.
if (require(USAboundariesData, quietly = TRUE)) {
us_cities(1805)
us_cities("1828-05-08")
us_cities()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.