Learn R Programming

HistDat (version 0.2.0)

range,HistDat-method: Calculates the range of values of the observations in the histogram dataset

Description

Calculates the range of values of the observations in the histogram dataset

Usage

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

Arguments

x

An instance of the class HistDat

...

Additional arguments to pass to range()

na.rm

Passed verbatim to base::range()

Value

A numeric of length 2, indicating the minimum and maximum value of the observations

Examples

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

Run the code above in your browser using DataLab