Load spatial files
ps_load_spatial(
dir = ".",
pattern = NULL,
recursive = FALSE,
crs = NULL,
rename = identity,
envir = parent.frame(),
fun = identity,
...
)
A string of the directory.
An optional regular expression. Only file names which match the regular expression will be returned. If NULL, all files with extensions readable by st_read wlll be returned.
A flag indicating whether to include files in subdirectories.
Default crs of object 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 file names.