HistDat: The constructor function for the HistDat class. This is the...

Description Usage Arguments Examples

View source: R/histogram.R

Description

The constructor function for the HistDat class. This is the only official way to create an instance of this class.

Usage

1
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

1
2
hd <- HistDat::HistDat(vals = 1:3, counts = c(1, 2, 1)) # equivalent to above
length(hd) # returns 4

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