Description Usage Arguments Details Value See Also Examples
function for easily opening a ESRI shapefile (or other OGR compatible vector file) by simply specifying its filename
1 |
shp_file |
|
as_sp |
|
... |
other arguments to be passed tosf::st_read |
simple wrapper around sf::read_sf
, with some checks on inputs and possibility of
automatic re-casting to *sp
objects
sf
or sp
object (depending on as_sp
setting)
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(sprawl.data)
# open a shapefile as a `sf` object
shp_file = system.file("extdata","lc_polys.shp", package = "sprawl.data")
read_vect(shp_file)
# open a shapefile as a `sp` object
shp_file = system.file("extdata","lc_polys.shp", package = "sprawl.data")
read_vect(shp_file, as_sp = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.