dk_cf: Correction factor for source decay.

Description Usage Arguments Value See Also Examples

View source: R/dk_cf.R

Description

Compute correction value for decay of a single-isotope source.

Usage

1
dk_cf(half_life, time_unit, date1, date2 = Sys.Date())

Arguments

half_life

The half-life numeric value

time_unit,

acceptable values are years, days, hours, and minutes. These may be shortened to y, d, h and m. Must be entered in quotes.

date1

Source reference date. If units are hours or shorter, include time. Format is "YYYY-mm-dd" for longer half-lives, or "YYYY-mm-dd-HH:MM".

date2

Date of interest. Format is same as date1. Default is today's date, obtained from system.

Value

The decay correction factor from the reference date to the date of interest.

See Also

Other decay corrections: dk_activity, dk_pct_to_num_half_life, dk_reverse, dk_time

Examples

1
2
3
4
dk_cf(half_life = 5.27, time_unit = "y", date1 = "2010-12-01", date2 = "2018-12-01")
#
# example defaulting to today's date:
dk_cf(half_life = 28.79, time_unit = "y", date1 = "2001-01-01")

radsafer documentation built on May 28, 2019, 1:02 a.m.