R/iquantile.lorenz.R

Defines functions iquantile.lorenz

Documented in iquantile.lorenz

iquantile.lorenz <-
function(x, values, type = c("L", "p"), ...)
{
    type <- match.arg(type)
    structure(sapply(values, function(z) min(x[x[,"x"] >= z, type])),
        names=paste0(format(values, trim=TRUE,
        digits = max(2L, getOption("digits")))))
}

Try the opticut package in your browser

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

opticut documentation built on May 2, 2019, 5:09 a.m.