[,HistDat,ANY,ANY,ANY-method {HistDat} | R Documentation |
Index the histogram data
Description
Index the histogram data
Usage
## S4 method for signature 'HistDat,ANY,ANY,ANY'
x[i, j, ..., drop = TRUE]
Arguments
x |
An instance of the class HistDat |
i |
A vector of indices to find in the sorted array of observations |
j , drop , ... |
Included for compatibility, but ignored |
Value
The observations that would be returned if you flattened the array and then indexed it
Examples
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
hd[1] # returns 1
hd[2] # returns 2
hd[3] # returns 2
[Package HistDat version 0.2.0 Index]