pb210_error_from_activity: Work with raw count data

View source: R/counts.R

pb210_error_from_activityR Documentation

Work with raw count data

Description

In an ideal world, the people who count your samples also calculate the specific activity and associated error. In an imperfect world, these functions are here to calculate specific activity and error given the required information.

Usage

pb210_error_from_activity(activity, count_mass, count_time)

pb210_error_from_counts(counts, count_mass, count_time)

pb210_activity_from_counts(counts, count_mass, count_time)

pb210_counts_from_activity(activity, count_mass, count_time)

Arguments

activity

A specific activity of lead-210, in Bq / kg.

count_mass

The amount of mass each sample that was counted (kg). Can be a vector to specify different masses for each sample.

count_time

The time each sample was counted, as resolved by lubridate::as.duration(). Raw numbers are treated as a number of seconds, however we reccomend using lubridate::ddays() and/or lubridate::dhours() to make the units explicit.

counts

The number of measured decays

Value

A vector of specific activities or specific activity errors in Bq / kg.

Examples

pb210_error_from_activity(
  c(500, 100, 10, 5),
  count_mass = 0.5 / 1000,
  count_time = lubridate::ddays(1)
)

pb210_error_from_counts(
  c(21600, 4320, 432, 216),
  count_mass = 0.5 / 1000,
  count_time = lubridate::ddays(1)
)

pb210_activity_from_counts(
  c(21600, 4320, 432, 216),
  count_mass = 0.5 / 1000,
  count_time = lubridate::ddays(1)
)

pb210_counts_from_activity(
  c(500, 100, 10, 5),
  count_mass = 0.5 / 1000,
  count_time = lubridate::ddays(1)
)


paleolimbot/pb210 documentation built on May 8, 2022, 8:10 a.m.