enmSdmX1.2.12 package

Species Distribution Modeling and Ecological Niche Modeling

bioticVelocity

Velocity of shifts in densities across a series of rasters

canada

Vector outline of Canada

compareResponse

Compare two response curves along one or more predictors

coordImprecision

Calculate the precision of a geographic coordinate

countPoints

Number of points in a "spatial points" object

customAlbers

Custom coordinate reference system WKT2 string

decimalToDms

Convert geographic coordinates in decimal format to degrees-minutes-se...

dmsToDecimal

Convert geographic coordinates in degrees-minutes-second to decimal fo...

dot-calcWeights

Calculate weights for a model

dot-cardinalDistance

Movement of occupied cells in a given direction of a fixed point

dot-euclid

Euclidean distance between a pair of points

dot-interpCoordFromQuantile

Latitude of quantile(s) of the geographic abundance distribution

dot-scalePredictors

Scales predictors

elimCellDuplicates

Thin spatial points so that there is but one per raster cell

enmSdmX

enmSdmX: Species distribution modeling and ecological niche modeling

evalAUC

Weighted AUC

evalContBoyce

Continuous Boyce Index (CBI) with weighting

evalMultiAUC

Calculate multivariate weighted AUC

evalThreshold

Weighted thresholds for predictions

evalThresholdStats

Thresholded evaluation statistics

evalTjursR2

Weighted Tjur's R2

evalTSS

Weighted True Skill Statistic (TSS)

extentToVect

Convert extent to a spatial polygon

geoFold

Assign geographically-distinct k-folds

geoFoldContrast

Assign geographically-distinct k-folds to background/absence sites

geoThin

Thin geographic points deterministically or randomly

getCRS

WKT string for a named coordinate reference system or a spatial object

getValueByCell

Get or assign values to cells in a raster

globalx

"Friendly" wrapper for terra::global() for calculating raster statisti...

interpolateRasts

Interpolate values from a series of rasters

longLatRasts

Generate rasters with cell values equal to cell longitude or latitude

madClim

Present-day climate rasters for Madagascar

madClim2030

Future climate rasters for Madagascar

madClim2050

Future climate rasters for Madagascar

madClim2070

Future climate rasters for Madagascar

madClim2090

Future climate rasters for Madagascar

modelSize

Number of response data in a model object

nearestEnvPoints

Extract "most conservative" environments from points and/or polygons

nearestGeogPoints

Minimum convex polygon from a set of spatial polygons and/or points

nicheOverlapMetrics

Metrics of niche overlap

plotExtent

Create spatial polygon same size as a plot

predictEnmSdm

Generic predict function for SDMs/ENMs

predictMaxEnt

Predict a MaxEnt model object (with optional feature-level permutation...

predictMaxNet

Predictions from a MaxNet model

responseCurves

Plot response curves for one or more models

sampleRast

Sample random points from a raster with/out replacement

spatVectorToSpatial

Convert SpatVector to Spatial*

squareCellRast

Create a raster with square cells

summaryByCrossValid

Summarize distribution/niche model cross-validation object

trainBRT

Calibrate a boosted regression tree (generalized boosting machine) mod...

trainByCrossValid

Calibrate a distribution/niche model using cross-validation

trainESM

Calibrate an ensemble of small models

trainGAM

Calibrate a generalized additive model (GAM)

trainGLM

Calibrate a generalized linear model (GLM)

trainMaxEnt

Calibrate a MaxEnt model using AICc

trainMaxNet

Calibrate a MaxNet model using AICc

trainNS

Calibrate a natural splines model

trainRF

Calibrate a random forest model

troubleshooting_parallel_operations

Troubleshooting parallel operations

weightByDist

Proximity-based weighting for occurrences to correct for spatial bias

Implements species distribution modeling and ecological niche modeling, including: bias correction, spatial cross-validation, model evaluation, raster interpolation, biotic "velocity" (speed and direction of movement of a "mass" represented by a raster), interpolating across a time series of rasters, and use of spatially imprecise records. The heart of the package is a set of "training" functions which automatically optimize model complexity based number of available occurrences. These algorithms include MaxEnt, MaxNet, boosted regression trees/gradient boosting machines, generalized additive models, generalized linear models, natural splines, and random forests. To enhance interoperability with other modeling packages, no new classes are created. The package works with 'PROJ6' geodetic objects and coordinate reference systems.

  • Maintainer: Adam B. Smith
  • License: MIT + file LICENSE
  • Last published: 2025-03-29