c-HistDat-method: Concatenate observations into this instance

Description Usage Arguments Value Examples

Description

Concatenate observations into this instance

Usage

1
2
## S4 method for signature 'HistDatCompatible'
c(x, ...)

Arguments

x

The first value to concatenate

...

The remaining values to concatenate

Value

A new HistDat object, with the other numeric values integrated into it

Examples

1
2
3
4
5
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
hd_2 = c(1, 1, hd)
hd@counts # returns 1 2 1
hd_2@counts # returns 3 2 1, as the first value now has 2 more counts
hd_2@vals # returns 1 2 3 (this is unchanged)

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