powered by
pmin
pmax
sum
psum(..., na.rm = FALSE)
TRUE
FALSE
if (interactive()) { n <- 20; mydat <- data.frame(PT = rnorm(n, mean = .30), PSDB = rnorm(n, mean = .25), PSB = rnorm(n, mean = .15)); head(mydat); transform(mydat, DK = psum(PT, PSDB, PSB - 1)); }
Run the code above in your browser using DataLab