View source: R/cal_aggregate.R
cal_sum | R Documentation |
Aggregates a vector of calendar probability distributions (such as calibrated radiocarbon dates) by summing them over a given range of ages.
cal_sum(x, range = cal_age_common(x), normalise = FALSE, ...)
## S3 method for class 'c14_cal'
sum(x, range = cal_age_common(x), normalise = FALSE, ...)
x |
A cal vector of calendar probability distributions |
range |
Range of ages over which to sum. Defaults to the maximum range
of |
normalise |
Whether to normalise the summed distribution to sum to 1. The default is not to normalise. |
... |
Not used |
The summed probability distribution as a cal vector.
Other functions for aggregating calendar probability distributions:
cal_density()
shub1_cal <- c14_calibrate(shub1_c14$c14_age, shub1_c14$c14_error)
cal_sum(shub1_cal)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.