range,HistDat-method {HistDat} | R Documentation |
Calculates the range of values of the observations in the histogram dataset
Description
Calculates the range of values of the observations in the histogram dataset
Usage
## S4 method for signature 'HistDat'
range(x, ..., na.rm = FALSE)
Arguments
x |
An instance of the class HistDat |
... |
Additional arguments to pass to |
na.rm |
Passed verbatim to |
Value
A numeric of length 2, indicating the minimum and maximum value of the observations
Examples
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
range(hd) # returns 1 3
[Package HistDat version 0.2.0 Index]