cal_sum: Sum calendar probability distributions

View source: R/cal_aggregate.R

cal_sumR Documentation

Sum calendar probability distributions

Description

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 = cal_age_common(x), normalise = FALSE, ...)

## S3 method for class 'c14_cal'
sum(x, range = cal_age_common(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 one year 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 vector.

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)

joeroe/c14 documentation built on Nov. 24, 2024, 11:47 p.m.