View source: R/write_shapefile.R
write_shapefile | R Documentation |
write_shapefile
uses rgdal::writeOGR
for the shapefile writer
and will write projection information. write_shapefile
will create the
directory where the shapefile is to be exported if necessary.
write_shapefile(sp, file)
sp |
Spatial object to be written as a shapefile. |
file |
Filename of shapefile to write. |
Stuart K. Grange
## Not run:
write_shapefile(sp_county, "~/Desktop/county_spatial_data")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.