A single run is computed following these steps:
Subset levels into each bin to define Working Units.
Optionally standardise assemblage counts in each WU.
Calculate dissimilarity between consecutive WUs.
Standardise dissimilarity by age difference between WUs.
Usage
run_iteration(
data_source_run,
bin_selection = "first",
standardise = FALSE,
n_individuals = 150,
tranform_to_proportions = TRUE,
dissimilarity_coefficient = "euc",
time_standardisation = 500,
verbose = FALSE,
silent = FALSE
)Arguments
- data_source_run
listwithdataandbinsprepared byprepare_data().- bin_selection
character. Rule for selecting one level from each bin."random"(default) - a level is selected at random."first"- the level closest to the start of the bin is selected.
- standardise
logical. IfTRUE, assemblage counts in each WU are rarefied ton_individualsbefore dissimilarity is computed.- n_individuals
numeric. Number of individuals to rarefy to whenstandardise = TRUE. Automatically reduced to the smallest count in the sequence if any WU has fewer individuals.- tranform_to_proportions
logical. IfTRUE(default), community data are converted to proportions before dissimilarity is computed.- dissimilarity_coefficient
character. Dissimilarity coefficient used to compare consecutive WUs. Seevegan::vegdist()for details."euc"- Euclidean distance"euc.sd"- standardised Euclidean distance"chord"- Chord distance"chisq"- Chi-squared coefficient"gower"- Gower's distance"bray"- Bray-Curtis dissimilarity
- time_standardisation
numeric. Time unit for RoC values. RoC is reported as dissimilarity pertime_standardisationyears. Defaults tobin_sizewhenNULL.- verbose
logical. IfTRUE, print progress messages during computation.- silent
logical. IfTRUE, suppress all console output (overridesverbose).
Value
A tibble with one row per WU pair containing columns Age, ROC,
ROC_up, ROC_dw, and Working_Unit.