prepProjData: Prepare environmental projection data

View source: R/prepProjData.R

prepProjDataR Documentation

Prepare environmental projection data

Description

Load a set of environmental covariates to be used to spatially project a fitted maxnet model

Usage

prepProjData(dataPath, quiet = TRUE)

Arguments

dataPath

String giving the file system path to the folder containing the geoTIFF rasters representing the environmental layers to be used to spatially project a fitted maxnet model

quiet

Logical. Default of TRUE suppresses progress messages.

Details

Loads a raster stack of environmental data layers to be used for projecting a maxnet model, and creates a matrix of data values and an array of indices pointing to rows with no missing values (goodCellInd).

The often very large data objects are placed in the global environment for direct access by functions as an efficiency measure.

A future version is planned wherein very large output will be stored in Rd files for fast reloading.

Value

Invisibly returns NULL but has the side effect of creating several objects in the R global environment.


peterbat1/fitMaxnet documentation built on Sept. 17, 2024, 10:50 p.m.