simulate_exposure {GeoTox} | R Documentation |
Simulate external exposure
Description
Simulate external exposure
Usage
simulate_exposure(
x,
expos_mean = "mean",
expos_sd = "sd",
expos_label = "casn",
n = 1000
)
Arguments
x |
data frame or list of data frames containing exposure data. |
expos_mean |
column name of mean values. |
expos_sd |
column name of standard deviations. |
expos_label |
column name of labeling term, required if |
n |
simulated sample size. |
Value
list of matrices containing inhalation rates. Matrix columns are
named using the values in the expos_label
column for more than one data
frame row. Columns are sorted to have consistent order across functions.
Examples
# Single data frame
x <- data.frame(mean = 1:3, sd = (1:3) / 10, casn = letters[1:3])
simulate_exposure(x, n = 5)
# List of 2 data frames
y <- data.frame(mean = 4:6, sd = 0.1, casn = letters[1:3])
simulate_exposure(list(loc1 = x, loc2 = y), n = 5)
# Input has custom column names
z <- data.frame(ave = 1:3, stdev = (1:3) / 10, chnm = letters[1:3])
simulate_exposure(z,
expos_mean = "ave",
expos_sd = "stdev",
expos_label = "chnm",
n = 5)
[Package GeoTox version 0.2.0 Index]