View source: R/calc_internal_dose.R
calc_internal_dose | R Documentation |
Estimate the internal dose from inhalation of a chemical given inhalation rate, time, and body weight
calc_internal_dose(C_ext, IR, time = 1, BW = 1, scaling = 1)
C_ext |
ambient chemical concentration in |
IR |
inhalation rate in |
time |
total time in |
BW |
body weight in |
scaling |
scaling factor encompassing any required unit adjustments |
Input C_ext
must be a matrix or list of matrices. Input IR
must be an
atomic vector or list of atomic vectors. The time
, BW
and scaling
arguments are scalars.
The internal dose is calculated as:
D_{int} = \frac{C_{ext} \times IR \times time}{BW} \times scaling
list of matrices containing internal chemical doses in
\frac{mg}{kg}
# Single population
C_ext <- matrix(1:15, ncol = 3)
IR <- 1:5
calc_internal_dose(C_ext, IR)
# Multiple populations
C_ext <- list(
"a" = matrix(1:15 / 10, ncol = 3),
"b" = matrix(1:8, ncol = 2)
)
IR <- list(1:5, 1:4 / 2)
calc_internal_dose(C_ext, IR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.