unit_convert: Convert between different units of radioactivity

View source: R/kinfitr_miscfuncs.R

unit_convertR Documentation

Convert between different units of radioactivity

Description

Convert between different units of radioactivity

Usage

unit_convert(
  values,
  from_units = c("GBq", "MBq", "kBq", "Bq", "mBq", "uBq", "nBq", "pBq", "GCi", "MCi",
    "kCi", "Ci", "mCi", "uCi", "nCi", "pCi"),
  to_units = c("GBq", "MBq", "kBq", "Bq", "mBq", "uBq", "nBq", "pBq", "GCi", "MCi",
    "kCi", "Ci", "mCi", "uCi", "nCi", "pCi")
)

Arguments

values

Radioactivity values which should be converted. This can be a single value or a vector of values.

from_units

The units from which the radioactivity should be converted.

to_units

The units to which the radioactivity should be converted.

Value

The converted radioactivity values in the new units

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples

unit_convert(1, "nCi", "Bq")
unit_convert(1:5, "nCi", "Bq")


mathesong/kinfitr documentation built on Jan. 15, 2024, 11:07 p.m.