Read shapefile from disk based on the filenames given
Source:R/shapefile_xyz.R
shapefile_from_filepaths.Rd
Read shapefile from disk based on the filenames given
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()