A thin wrapper around stats::quantile().

myqdata(p, vals, data = parent.frame(), ...)

Arguments

p

a vector of probabilities

vals

a numeric vector or a name of a variable in data

data

a data frame

...

addtional arguments passed to quantile()

Value

a vector of quantiles

Examples

myqdata( .5, eruptions, data=faithful)
#> 50% #> 4