modelFromLambdas: Maxent model from .lambdas file.

Description Usage Arguments Details Value

View source: R/modelFromLambdas.R

Description

modelFromLambdas returns an R function for a given Maxent model, using the .lambdas file produced by the MaxEnt program to parameterize the model. The returned function gives predictions of the model in "raw output" format from values of explanatory variables.

Usage

1

Arguments

file

pathway to the .lambdas file of a given Maxent model

raw

Logical. Should the function return raw Maxent output instead of PRO?

Details

The modelFromLambdas function returns a Maxent model, in the form of a function that calculates Maxent predictions for given values of explanatory variables.

Input to the function returned by modelFromLambdas are values of explanatory variables in the model. The format of this input must be an array (matrix or data frame) with m columns, and column names must match variable names in the .lambdas file used to reproduce the model.

Value

returns an R function (object).


MIAmaxent documentation built on Dec. 1, 2020, 5:08 p.m.