Learn R Programming

SDMtune (version 1.1.1)

maxentTh: MaxEnt Thresholds

Description

Returns the value of the thresholds generated by the MaxEnt software.

Usage

maxentTh(model)

Arguments

model

'>SDMmodel object trained using the "Maxent" method.

Value

data.frame with the thresholds.

See Also

maxentVarImp.

Examples

Run this code
# NOT RUN {
# Acquire environmental variables
files <- list.files(path = file.path(system.file(package = "dismo"), "ex"),
                    pattern = "grd", full.names = TRUE)
predictors <- raster::stack(files)

# Prepare presence and background locations
p_coords <- virtualSp$presence
bg_coords <- virtualSp$background

# Create SWD object
data <- prepareSWD(species = "Virtual species", p = p_coords, a = bg_coords,
                   env = predictors, categorical = "biome")

# Train a Maxent model
# The next line checks if Maxent is correctly configured but you don't need
# to run it in your script
if (checkMaxentInstallation(verbose = FALSE)) {
model <- train(method = "Maxent", data = data, fc = "l")
maxentTh(model)
}
# }

Run the code above in your browser using DataLab