sub-HistDat-ANY-ANY-ANY-method: Index the histogram data

Description Usage Arguments Value Examples

Description

Index the histogram data

Usage

1
2
## 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

1
2
3
4
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
hd[1] # returns 1
hd[2] # returns 2
hd[3] # returns 2

HistDat documentation built on April 6, 2021, 9:08 a.m.