MazamaLocationUtils (version 0.1.6)

table_load: Load a known location table

Description

Load a tibble of known locations from the preferred directory.

Usage

table_load(collectionName = NULL)

Arguments

collectionName

Character identifier for this table, Default: NULL

Value

Tibble of known locations.

See Also

setLocationDataDir

Examples

Run this code
# NOT RUN {
# Set the directory for saving location tables
setLocationDataDir(tempdir())

# Load an example table and check the dimensions
locationTbl <- get(data("wa_monitors_500"))
dim(locationTbl)

# Save it as "table_load_example"
table_save(locationTbl, "table_load_example")

# Load it and check the dimensions
my_table <- table_load("table_load_example")
dim(my_table)

# Check the locationDataDir
list.files(getLocationDataDir(), pattern = "table_load_example")
# }

Run the code above in your browser using DataLab