rmmToCSV: Create .csv File From rangeModelMetaData Object

View source: R/csvConversion.R

rmmToCSVR Documentation

Create .csv File From rangeModelMetaData Object

Description

Takes user-input rangeModelMetaData object and from it generates a .csv file that can be used to document range model metadata for a variety of applications.

Usage

rmmToCSV(x = rmmTemplate(family = NULL), filename = NULL)

Arguments

x

An object of class rmm that the user wishes transposed into a .csv file.

filename

The name of the transcription .csv file.

Details

See Examples.

Value

An data frame containing all the information from an rmm object.

Author(s)

Hannah Owens <hannah.owens@gmail.com>, Cory Merow <cory.merow@gmail.com>

See Also

Other csvConversion: cleanForCSV(), csvToRMM()

Examples

rmm <- rmmTemplate()
rasterFiles <- list.files(path=paste(system.file(package='dismo'), '/ex', sep=''),
                       pattern='grd', full.names=TRUE)
#make a stack of the rasters
env <- terra::rast(rasterFiles)
# for fitting environment
rmm <- rmmAutofillEnvironment(rmm,env,transfer=0)
# for the first environment that you're transfering to
rmm <- rmmAutofillEnvironment(rmm,env,transfer=1)
# for the second environment that you're transfering to, etc.
rmm <- rmmAutofillEnvironment(rmm,env,transfer=2)
## Not run: 
tmp <- rmmToCSV(rmm,file='somePathOnYourMachine/rmm_example.csv')

## End(Not run)

rangeModelMetadata documentation built on Oct. 17, 2023, 1:11 a.m.