Skip to contents

Read shapefile from any file or folder (trying to infer the format)

Usage

shapefile_from_any(path = NULL, cleanit = TRUE, crs = 4269, layer = NULL, ...)

Arguments

path

path of file(s) that is/are .gdb, .zip, .shp, .geojson, .json, etc., or folder

cleanit

set to FALSE if you want to skip validation and dropping invalid rows

crs

passed to shapefile_from_filepaths() etc. and default is crs = 4269 or Geodetic CRS NAD83

layer

optional layer name passed to sf::st_read()

...

passed to sf::st_read()

Value

a simple feature sf::sf class object using sf::st_read()