tidysdm1.0.4 package

Species Distribution Models with Tidymodels

add_member

Add best member of workflow to a simple ensemble

add_repeat

Add repeat(s) to a repeated ensemble

autoplot.simple_ensemble

Plot the results of a simple ensemble

autoplot.spatial_initial_split

Create a ggplot for a spatial initial rsplit.

blockcv2rsample

Convert an object created with blockCV to an rsample object

boyce_cont

Boyce continuous index (BCI)

calib_class_thresh

Calibrate class thresholds

check_coords_names

Check that we have a valid pair of coordinate names

check_sdm_presence

Check that the column with presences is correctly formatted

check_splits_balance

Check the balance of presences vs pseudoabsences among splits

clamp_predictors

Clamp the predictors to match values in training set

collect_class_thresh

Obtain and format the class thresholds for ensemble objects

collect_metrics.simple_ensemble

Obtain and format results produced by tuning functions for ensemble ob...

conf_matrix_df

Make a confusion matrix dataframe for multiple thresholds

control_ensemble

Control wrappers

dist_pres_vs_bg

Distance between the distribution of climate values for presences vs b...

explain_tidysdm

Create explainer from your tidysdm ensembles.

extrapol_mess

Multivariate environmental similarity surfaces (MESS)

filter_collinear

Filter to retain only variables that have low collinearity

filter_high_cor

Deprecated: Filter to retain only variables below a given correlation ...

form_resp

Get the response variable from a formula

gam_formula

Create a formula for gam

geom_split_violin

Split violin geometry for ggplots

grid_cellsize

Get default grid cellsize for a given dataset

grid_offset

Get default grid cellsize for a given dataset

kap_max

Maximum Cohen's Kappa

km2m

Convert a geographic distance from km to m

make_mask_from_presence

Make a mask from presence data

maxent_params

Parameters for maxent models

maxent

MaxEnt model

maxnet_fit

Wrapper to fit maxnet models with formulae

maxnet_predict

Wrapper to predict maxnet models

niche_overlap

Compute overlap metrics of the two niches

optim_thresh_kap_max

Find threshold that maximises Kappa

optim_thresh_sens

Find threshold that gives a target sensitivity

optim_thresh_tss_max

Find threshold that maximises TSS

optim_thresh

Find threshold that optimises a given metric

out_of_range_warning

Warn if some times are outside the range of time steps from a raster

pairs-stars

Pairwise matrix of scatterplot for stars objects

pipe

Pipe operator

plot_pres_vs_bg

Plot presences vs background

predict_raster

Make predictions for a whole raster

predict.repeat_ensemble

Predict for a repeat ensemble set

predict.simple_ensemble

Predict for a simple ensemble set

prob_metrics_sf

Probability metrics for sf objects

prob_to_binary

simple function to convert probability to binary classes

recipe.sf

Recipe for sf objects

repeat_ensemble

Repeat ensemble

sample_background_time

Sample background points for SDM analysis for points with a time point...

sample_background

Sample background points for SDM analysis

sample_pseudoabs_time

Sample pseudo-absence points for SDM analysis for points with a time p...

sample_pseudoabs

Sample pseudo-absence points for SDM analysis

sdm_metric_set

Metric set for SDM

sdm_spec_boost_tree

Model specification for a Boosted Trees model for SDM

sdm_spec_gam

Model specification for a GAM for SDM

sdm_spec_glm

Model specification for a GLM for SDM

sdm_spec_maxent

Model specification for a MaxEnt for SDM

sdm_spec_rand_forest

Model specification for a Random Forest for SDM

simple_ensemble

Simple ensemble

spatial_initial_split

Simple Training/Test Set Splitting for spatial data

thin_by_cell_time

Thin point dataset to have 1 observation per raster cell per time slic...

thin_by_cell

Thin point dataset to have 1 observation per raster cell

thin_by_dist_time

Thin points dataset based on geographic and temporal distance

thin_by_dist

Thin points dataset based on geographic distance

tidysdm-package

tidysdm: Species Distribution Models with Tidymodels

tss_max

Maximum TSS - True Skill Statistics

tss

TSS - True Skill Statistics

y2d

Convert a time interval from years to days

Fit species distribution models (SDMs) using the 'tidymodels' framework, which provides a standardised interface to define models and process their outputs. 'tidysdm' expands 'tidymodels' by providing methods for spatial objects, models and metrics specific to SDMs, as well as a number of specialised functions to process occurrences for contemporary and palaeo datasets. The full functionalities of the package are described in Leonardi et al. (2024) <doi:10.1111/2041-210X.14406>.

  • Maintainer: Andrea Manica
  • License: AGPL (>= 3)
  • Last published: 2025-12-13