read_shapefile | R Documentation |
Using rgdal::readOGR()
, read in a shapefile.
read_shapefile(
filename,
filepath = NULL,
projection = NULL,
stringsAsFactors = FALSE
)
filename |
Character string. The filename of the shapefile to read in. May be the full filepath to the shapefile, in which case use |
filepath |
Optional character string. The filepath to the location where the shapefile matching |
projection |
Optional CRS object. The projection to return the shapefile in as a CRS object, e.g. |
stringsAsFactors |
Logical. To be passed to |
Spatial data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.