project_maxent: Project a fitted Maxent model

Description Usage Arguments Details Value Warning Author(s) References

View source: R/project_maxent.r

Description

Project a fitted Maxent model by predicting to new environmental data.

Usage

1
project_maxent(lambdas, newdata, mask)

Arguments

lambdas

Either a MaxEnt fitted model object (fitted with the maxent function in the dismo package), or a file path to a Maxent .lambdas file.

newdata

A RasterStack, RasterBrick, list, data.frame, data.table, or matrix that has layers/elements/columns whose names correspond to the names of predictors used to fit the model. These layers/elements/columns must all have the same length.

mask

(Optional; requires that newdata is a Raster* object.) A Raster object with NA values in cells for which the model should not be projected. These cells will be assigned NA in the returned output.

Details

project_maxent uses feature weights described in a .lambas file or MaxEnt object to predict a Maxent model to environmental data. This function performs the projection entirely in R, without the need for the Maxent Java software. For tested datasets, it performs the projection in roughly one third of the time taken for the same projection by maxent.jar.

Value

If newdata is a RasterStack or RasterBrick, a list with two elements:

If newdata is not a RasterStack or RasterBrick, the raster layers will be replaced with data.tables in the returned list.

Warning

This function is still in development, and no guarantee is made for the accuracy of its projections.

Author(s)

John B. Baumgartner, johnbaums@gmail.com

References


wkmor1/voiConsPlan documentation built on May 4, 2019, 7:34 a.m.