how to read multiple .shp
file as one object?
I want to read simply like under the code.
nc <- st_read(dsn = "nc",
layer = c("nc1","nc2"))
what is the best method to read multiple files as a object?
library(sf)
nc <- st_read(system.file("shape/nc.shp", package="sf"))
nc1 <- nc[1:50, ]
nc2 <- nc[51:100, ]
st_write(nc1,
dsn = "nc",
layer = "nc1",
driver = "ESRI Shapefile")
st_write(nc2,
dsn = "nc",
layer = "nc2",
driver = "ESRI Shapefile",update = T)