read_shp: Read a layer from a shapefile

Description Usage Arguments Value Examples

Description

Read a layer from a shapefile

Usage

1
read_shp(dsn = ".", layer = NULL, ..., verbose = getOption("verbose"))

Arguments

dsn

(character) path to folder or ZIP file

layer

(character) layer to extract

...

further arguments to sf::read_sf()

verbose

(logical)

Value

an sf object

Examples

1
2
3
zip_file <- "~/Dropbox/ca_co_ab_dis.zip"
sf_obj <- read_shp(zip_file, layer = "CoAbDis")
mapview(sf_obj)

BAAQMD/shptools documentation built on June 29, 2019, 10:27 p.m.