Create a single list with all information needed to estimate RoC. This list can then be evaluated in parallel across randomisation runs.
Usage
prepare_data(
data_source_prep,
working_units = c("levels", "bins", "MW"),
bin_size = 500,
number_of_shifts = 5,
rand = NULL
)Arguments
- data_source_prep
List with
communityandage- 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 widthbin_size."MW"- moving-window binning: selective binning is repeatednumber_of_shiftstimes, shifting the window bybin_size / number_of_shiftsyears each time. All results are retained and summarised together.
- bin_size
numeric. Width of each time bin in years. Used whenworking_unitsis"bins"or"MW".- number_of_shifts
numeric. Number of window shifts in moving-window binning (working_units = "MW").- rand
numeric. Number of randomisation runs. Set toNULL(default) for a single run. The single run uses the point ages (age_uncertaintyis not used), and it is deterministic unless samples are selected at random (bin_selection = "random"withworking_units = "bins"or"MW") or counts are rarefied (standardise = TRUE). With these settings or withage_uncertainty, fewer than 100 runs (includingNULL) give a warning unlesssilent = TRUE. With 100 runs or more, a warning gives the recommended number of runs when the Monte Carlo error is too large (see Details andcheck_rand()).
