pb210_excess: Calculate excess (unsupported) lead-210

View source: R/background.R

pb210_excessR Documentation

Calculate excess (unsupported) lead-210

Description

Boath activitiy and background should be arranged such that the top of the core is first.

Usage

pb210_excess(activity, background = 0)

Arguments

activity

A vector of measured lead-210 specific activities (in Bq/kg) and associated error. These can have errors::errors().

background

A vector of estimated background lead-210 specific activity (in Bq/kg) and associated error. These can have errors::errors().

Value

A vector with errors::errors() of the excess lead-210 specific activity. Background is determined by the first point at which activity is less than or equal to background. All excess values are set to NA below (after) this point.

Examples

core <- pb210_simulate_core(depth_step = rep(1, 30)) %>%
  pb210_simulate_counting()

pb210_excess(
  set_errors(
    core$activity_estimate,
    core$activity_se
  ),
  background = 10
)


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