c14_sum | R Documentation |
A wrapper for rcarbon::spd()
that takes a list of calibrated dates rather
than a CalDates
object. This allows you to use the output of c14_calibrate()
and
take advantage of tidy summary syntax (dplyr::group_by()
, etc.)
c14_sum(cal, time_range = NA, ...)
cal |
A list of |
time_range |
Vector of length 2 indicating the range of calendar dates
over which to sum. If left |
... |
Optional arguments to be passed to |
Unlike rcarbon::spd()
, this function will attempt to guess an appropriate
time range if it isn't explicitly specified with time_range
. It's probably
a good idea to specify it.
A calGrid
object containing the summed probability distribution.
Other tidy radiocarbon functions:
c14_calibrate()
,
cal()
data("shub1_radiocarbon")
shub1_radiocarbon %>%
dplyr::mutate(cal = c14_calibrate(cra, error, normalise = FALSE, verbose = FALSE)) %>%
dplyr::group_by(phase) %>%
dplyr::summarise(SPD = c14_sum(cal, spdnormalised = TRUE, verbose = FALSE),
.groups = "drop_last")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.