Function Reference
This page documents all custom R functions used across the BIODYNAMICS vegetation co-occurrence project. The repo is part of the BIODYNAMICS project — see Methods & Overview for the full pipeline context.
Function categories
The project is implemented in R and driven by a {targets} reproducible pipeline. Functions are organised into the following categories:
| Category | Role |
|---|---|
| Community | Pollen data extraction, reshaping, filtering, taxonomic classification |
| Abiotic | Environmental predictor retrieval, collinearity reduction, interpolation |
| Modelling | jSDM fitting, spatial MEMs, model evaluation, variance partitioning |
| Time | Age handling, temporal interpolation, sample alignment |
| Utility | Pipeline helpers, configuration, quality checks, visualisation |
Each function is documented with roxygen2 and its page is auto-generated by R/03_Supplementary_analyses/Document_functions.R. After adding or editing a function, re-run that script and re-render the site to keep this page up to date.
All functions
Code coverage
Tests are written with {testthat} and coverage is measured with {covr}. Coverage is computed per function and aggregated across the project.
Current coverage:
Full interactive coverage report: