inst/Examples/dummyQuantile.R

doQuantile <- function(oldQ, newdata, probs) {
    if(!exists("hiddenData")) {
        message("using dummy doQuantile--don't take the results seriously")
        hiddenData <<- numeric()
    }
    hiddenData <<- c(hiddenData, newdata)
    quantile(hiddenData, probs)
}

Try the SoDA package in your browser

Any scripts or data that you put into this service are public.

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.