R/load.R
ps_load_spatial_db.Rd
Load spatial database Any spatial database format readable by sf::st_read is acceptable.
ps_load_spatial_db(
path = "~/Poisson/Data/spatial/fwa/gdb/FWA_BC.gdb",
layers = NULL,
crs = NULL,
rename = identity,
envir = parent.frame(),
fun = identity,
...
)
A string of the path to the spatial database.
A character string vector indicating which layers to load.
Default crs of layer if missing.
A function that is used to rename files (after removing extension .csv) before they are passed to make.names.
The environment to assign the data frames.
A function that is applied to all sf objects before they are assigned to envir.
Additional arguments passed to st_read
.
An invisible character vector of the layer names.