Learn R Programming

HistDat (version 0.2.0)

min,HistDat-method: Calculates the smallest observation in the histogram dataset

Description

Calculates the smallest observation in the histogram dataset

Usage

# S4 method for HistDat
min(x, ..., na.rm = FALSE)

Arguments

x

An instance of the class HistDat

...

Passed verbatim to base::min()

na.rm

Passed verbatim to base::min()

Value

A numeric of length 1, holding the smallest observation in the dataset

Examples

Run this code
# NOT RUN {
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
min(hd) # returns 1
# }

Run the code above in your browser using DataLab