sum.HistDat: Calculates the sum of all observations in the histogram...

Description Usage Arguments Value Functions Examples

Description

Calculates the sum of all observations in the histogram dataset

Usage

1
2
## S4 method for signature 'HistDat'
sum(x, ..., na.rm = FALSE)

Arguments

x

An instance of the class HistDat

...

Additional arguments to pass to sum()

na.rm

Passed verbatim to base::sum()

Value

A numeric of length 1, holding the sum of all values in the dataset

Functions

Examples

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

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