powered by
Calculates the total number of observations in a histogram dataset
# S4 method for HistDat length(x)
An instance of the class HistDat
A numeric of length 1, holding the number of observations in the dataset
# NOT RUN { hd <- HistDat(vals = 1:3, counts = c(1, 2, 1)) length(hd) # returns 4 # }
Run the code above in your browser using DataLab