powered by
Index the histogram data
# S4 method for HistDat,ANY,ANY,ANY [(x, i, j, ..., drop = TRUE)
An instance of the class HistDat
A vector of indices to find in the sorted array of observations
Included for compatibility, but ignored
The observations that would be returned if you flattened the array and then indexed it
# NOT RUN { hd <- HistDat(vals = 1:3, counts = c(1, 2, 1)) hd[1] # returns 1 hd[2] # returns 2 hd[3] # returns 2 # }
Run the code above in your browser using DataLab