Learn R Programming

PoolDilutionR (version 1.0.0)

pdr_predict: Predict total pool, heavy isotope pool, and atom percent

Description

Predict total pool, heavy isotope pool, and atom percent

Usage

pdr_predict(
  time,
  m0,
  n0,
  P,
  k,
  pool = "CH4",
  frac_P = frac_P_default(pool),
  frac_k = frac_k_default(pool)
)

Value

Returns a data frame with mt, nt, and AP_pred (atom percent) for each time step

Arguments

time

Vector of numeric time values (e.g. days); first should be zero

m0

total pool size at time zero, as a volume

n0

pool size of heavy isotope at time zero, as a volume

P

production rate, unit gas/unit time

k

first-order rate constant for consumption, 1/unit time

pool

Name of pool; see pdr_fractionation

frac_P

Fractionation value for production; see pdr_fractionation

frac_k

Fractionation value for consumption; see pdr_fractionation

Author

K.A. Morris & B. Bond-Lamberty

Examples

Run this code
pdr_predict(time = 0:5, m0 = 10, n0 = 1, P = 0.5, k = 0.3)

Run the code above in your browser using DataLab