View source: R/extract_spatial.R
feature_states | R Documentation |
summarize the spatial extent of data relative to overlap w/ US states
feature_states(obj)
obj |
a spatial object from the |
not all sf
or sp
spatial classes are supported.
If you run into one that you need, file an issue https://github.com/USGS-R/meddle/issues
a list with states
field
library(sf)
sfc = st_sfc(st_point(c(-89, 45)), st_point(c(-109, 42)), crs = 4326)
sf = st_sf(data.frame(val = c('WI_point', 'WY_point'), geom=sfc))
feature_states(sf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.