Skip to contents

Aggregates a vector of calendar probability distributions (such as calibrated radiocarbon dates) by summing them over a given range of ages.

Usage

cal_sum(x, range = NULL, normalise = FALSE, ...)

# S3 method for class 'c14_cal'
sum(x, ..., normalise = FALSE)

Arguments

x

A cal vector of calendar probability distributions.

range

Range of ages over which to sum. Defaults to the maximum range of x at native resolution.

normalise

Whether to normalise the summed distribution to sum to 1. The default is not to normalise.

...

Not used

Value

The summed probability distribution as a cal_dist vector of length 1.

See also

Other functions for aggregating calendar probability distributions: cal_density()

Examples

shub1_cal <- c14_calibrate(shub1_c14$c14_age, shub1_c14$c14_error)
cal_sum(shub1_cal)
#> <c14_cal_dist[1]>
#> [1] c. 14250 cal BP