Learn R Programming

MIAmaxent (version 1.3.1)

modelFromLambdas: Maxent model from .lambdas file.

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

modelFromLambdas(file, raw = FALSE)

Value

returns an R function (object).

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.