[R PACKAGE] Tools for fast, flexible climate analog analysis

analogs is an R package for climate analog analysis, a set of methods widely used in climate change ecology and biogeography. The package provides fast, flexible tools for searching large reference datasets to find locations that best match query sites based on climate similarity and geographic proximity.
Climate analog methods underpin a range of applications in climate change research, from estimating climate velocity—the speed at which climate conditions shift across a landscape—to predicting ecological impacts using analog-based models that leverage spatial patterns as a proxy for temporal change. The analogs package provides a unified framework for these diverse applications, with a focus on computational efficiency and methodological flexibility.
analog_search() function and simplified wrappers for common analysis typesanalog_velocity() to find the nearest geographic locations with analogous climates under projected changeanalog_impact() to predict ecological state variables by aggregating conditions at climate-similar locationsanalog_availability() to count and map the density of climate analogs within specified constraintsThe package is available on GitHub and can be installed with:
pak::pak("matthewkling/analogs")
Full documentation and examples are available at the package website.