powered by
Calculates the sum of all observations in the histogram dataset
# S4 method for HistDat sum(x, ..., na.rm = FALSE)
An instance of the class HistDat
Additional arguments to pass to sum()
sum()
Passed verbatim to base::sum()
base::sum()
A numeric of length 1, holding the sum of all values in the dataset
sum,HistDat-method: The S4 version
sum,HistDat-method
# NOT RUN { hd <- HistDat(vals = 1:3, counts = c(1, 2, 1)) sum(hd) # returns 8 # }
Run the code above in your browser using DataLab