HistDat {HistDat} | R Documentation |
The constructor function for the HistDat class. This is the only official way to create an instance of this class.
Description
The constructor function for the HistDat class. This is the only official way to create an instance of this class.
Usage
HistDat(vals, counts)
Arguments
vals |
A vector of observation values, ie all the possible values that could be observed |
counts |
A vector of counts, each of which corresponds to the same index in the vals parameter |
Examples
hd <- HistDat::HistDat(vals = 1:3, counts = c(1, 2, 1)) # equivalent to above
length(hd) # returns 4
[Package HistDat version 0.2.0 Index]