weighted_means: Calculate the weighted mean of C14 ages

View source: R/marine.R

weighted_meansR Documentation

Calculate the weighted mean of C14 ages

Description

Calculating the weighted mean of multiple C14 ages, using their means and lab errors.

Usage

weighted_means(y, er, round = 1, talk = TRUE)

Arguments

y

The C14 ages.

er

The lab errors of the C14 ages.

round

Rounding to be applied (defaults to 1 decimal).

talk

Report details of the found values.

Value

The weighted mean and error (the latter is the maximum of the weighted error and the square root of the variance).

Examples

  N_UK <- map.shells(53, -11, 60, 2, mapsize="small")
  weighted_means(N_UK$dR, N_UK$dSTD)

rice documentation built on April 11, 2025, 5:53 p.m.