View source: R/csvConversion.R
rmmToCSV | R Documentation |
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.
rmmToCSV(x = rmmTemplate(family = NULL), filename = NULL)
x |
An object of class |
filename |
The name of the transcription .csv file. |
See Examples.
An data frame containing all the information from an rmm
object.
Hannah Owens <hannah.owens@gmail.com>, Cory Merow <cory.merow@gmail.com>
Other csvConversion:
cleanForCSV()
,
csvToRMM()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.