save_master: Functions to save and read master objects

View source: R/save_master.R

save_masterR Documentation

Functions to save and read master objects

Description

Functions to save and read master objects

Usage

save_master(master, file_name, verbose = TRUE)

read_master(file_name)

Arguments

master

object derived from the functions prepare_master_matrix, random_selection, uniformG_selection, uniformE_selection, or uniformEG_selection.

file_name

(character) name for the file to save or read the master object (includes extension ".rds").

verbose

whether or not to print messages about the process. Default = TRUE.

Value

If verbose = TRUE, a message indicating the path where the object was saved.

a master matrix object with unwrapped spatial objects.

Examples

m_matrix <- read_master(system.file("extdata/m_matrix.rds",
                                    package = "biosurvey"))

claununez/biosurvey documentation built on April 25, 2024, 12:24 a.m.