Skip to contents

Loads sf tbls that must meet the same requirements as sbf_save_spatials.

Usage

sbf_load_spatials(
  sub = sbf_get_sub(),
  main = sbf_get_main(),
  rename = identity,
  env = parent.frame(),
  x_name = ".*"
)

Arguments

sub

A string or character vector specifying the path to the sub folder (by default the current sub folder).

main

A string specifying the path to the main folder (by default the current main folder)

rename

A single function argument which takes a character vector and returns a character vector of the same length. Used to rename objects before they are loaded into the environment.

env

The environment to load the objects into

x_name

A string of the Perl-compatible regular expression to match.

Value

An invisible character vector of the data frames' names.