rmmAutofillEnvironment: Add relevant environmental data information to an rmm object

View source: R/autofill.R

rmmAutofillEnvironmentR Documentation

Add relevant environmental data information to an rmm object

Description

This can be used with environmental layers used for fitting or transferring

Usage

rmmAutofillEnvironment(rmm, env, transfer)

Arguments

rmm

an rmm list

env

a SPatRaster object

transfer

0 if not transfer, 1:n for n environments that you're transferring to

Details

See Examples.

Value

a range model metadata list

Author(s)

Cory Merow <cory.merow@gmail.com>, Brian Maitner <bmaitner@gmail.com>,

See Also

Other autofill: rmmAutofillBIEN(), rmmAutofillPackageCitation(), rmmAutofillspocc()

Examples

## Not run: 
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)

## End(Not run)

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