write_shp: Write geodata to a shapefile

Description Usage Arguments Value Examples

Description

Write geodata to a shapefile

Usage

1
2
write_shp(geodata, dsn = getwd(), layer = deparse(substitute(geodata)), ...,
  verbose = TRUE)

Arguments

geodata

(sf or sp object)

dsn

(character) generally, a path on disk; see sf::st_write()

layer

(character) layer name; see sf::st_write()

...

further arguments to sf::write_sf()

Value

geodata, invisibly (to allow for chaining)

Examples

1
2
3
require(ARB)
dsn <- tempdir()
write_shp(ARB_CoAbDis, dsn = dsn, layer = "CoAbDis", delete_layer = TRUE)

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