Skip to contents

Build the Working Unit template (bin boundaries and assignments) used throughout all randomisation runs.

Usage

make_bins(
  data_source_bins,
  working_units = c("levels", "bins", "MW"),
  bin_size = 500,
  number_of_shifts = 5
)

Arguments

data_source_bins

list with community and age elements.

working_units

character. Strategy used to define Working Units between which dissimilarity is calculated.

  • "levels" - each stratigraphical level is its own WU.

  • "bins" - one representative level is selected from each time bin of width bin_size.

  • "MW" - moving-window binning: selective binning is repeated number_of_shifts times, shifting the window by bin_size / number_of_shifts years each time. All results are retained and summarised together.

bin_size

numeric. Width of each time bin in years. Used when working_units is "bins" or "MW".

number_of_shifts

numeric. Number of window shifts in moving-window binning (working_units = "MW").

Value

A data.frame defining each Working Unit with columns name, shift, age_diff, start, end, res_age, and label.