get_admin_data | R Documentation |
Get U.S. states and counties using a very fast query.
get_states( location = NULL, dist = NULL, diag_ratio = NULL, unit = NULL, asp = NULL, class = "df", ... ) get_counties( location = NULL, dist = NULL, diag_ratio = NULL, unit = NULL, asp = NULL, class = "df", ... )
location |
A |
dist |
buffer distance in units. Optional. |
diag_ratio |
ratio of diagonal distance of area's bounding box used as
buffer distance. e.g. if the diagonal distance is 3000 meters and the
"diag_ratio = 0.1" a 300 meter will be used. Ignored when |
unit |
Units for buffer. Supported options include "meter", "foot", "kilometer", and "mile", "nautical mile" Common abbreviations (e.g. "km" instead of "kilometer") are also supported. Distance in units is converted to units matching GDAL units for x; defaults to "meter" |
asp |
Aspect ratio of width to height as a numeric value (e.g. 0.33) or
character (e.g. "1:3"). If numeric, |
class |
Class of data to return, "df" (default), "sf", "bbox", or "sfc" |
... |
Additional parameters including geoid or name. For |
get_states( location = "Maryland" ) get_counties( location = "Baltimore city, Maryland" ) get_states( location = "24", class = "sf" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.