be_correct | R Documentation |
Adjust values based on the barometric efficiency
be_correct(
dat,
dep = "wl",
ind = "baro",
be = 0,
inverse = TRUE,
known_mean = NULL
)
be |
|
known_mean |
|
numeric vector
of corrected values
library(data.table)
baro = rnorm(1000, sd = 0.01) + 9
wl <- baro * 0.4 + 18
dat <- data.table(baro, wl)
dat$wl + be_correct(dat, be=0.4, inverse = FALSE)
dat$wl + be_correct(dat, be=0.4, inverse = FALSE, known_mean = 9)
# should return ~21.6 = 18 + 0.4 * 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.