length-HistDat-method: Calculates the total number of observations in a histogram...

Description Usage Arguments Value Examples

Description

Calculates the total number of observations in a histogram dataset

Usage

1
2
## S4 method for signature 'HistDat'
length(x)

Arguments

x

An instance of the class HistDat

Value

A numeric of length 1, holding the number of observations in the dataset

Examples

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

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