length,HistDat-method {HistDat}R Documentation

Calculates the total number of observations in a histogram dataset

Description

Calculates the total number of observations in a histogram dataset

Usage

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

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

[Package HistDat version 0.2.0 Index]