Learn R Programming

HistDat (version 0.2.0)

quantile,HistDat-method: Returns the empirical quantiles of the observations represented by this class

Description

Returns the empirical quantiles of the observations represented by this class

Usage

# S4 method for HistDat
quantile(x, ...)

Arguments

x

An instance of the class HistDat

...

Remaining arguments to pass to stats::quantile()

Examples

Run this code
# NOT RUN {
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
quantile(hd, 0.1) # returns 1.3
# }

Run the code above in your browser using DataLab