Learn R Programming

rice (version 1.1.1)

weighted_means: 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)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab