Skip to contents

Read shapefile from disk based on the filenames given

Usage

shapefile_from_filepaths(
  filepaths = NULL,
  cleanit = TRUE,
  crs = 4269,
  layer = NULL,
  ...
)

Arguments

filepaths

vector of full paths with filenames (types .shp, .shx, .dbf, and .prj) as strings

cleanit

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

crs

if cleanit = TRUE, crs is passed to shapefile_clean() default is crs = 4269 or Geodetic CRS NAD83 Also can check this via x <- sf::st_crs(sf::st_read()); x$input

layer

optional name of layer to read

...

passed to sf::st_read()

Value

a shapefile object using sf::st_read()