sum,HistDat-method {HistDat} | R Documentation |
Calculates the sum of all observations in the histogram dataset
Description
Calculates the sum of all observations in the histogram dataset
Usage
## S4 method for signature 'HistDat'
sum(x, ..., na.rm = FALSE)
Arguments
x |
An instance of the class HistDat |
... |
Additional arguments to pass to |
na.rm |
Passed verbatim to |
Value
A numeric of length 1, holding the sum of all values in the dataset
Functions
-
sum,HistDat-method
: The S4 version
Examples
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
sum(hd) # returns 8
[Package HistDat version 0.2.0 Index]