range-HistDat-method: Calculates the range of values of the observations in the...

Description Usage Arguments Value Examples

Description

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

Usage

1
2
## S4 method for signature '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

1
2
hd <- HistDat(vals = 1:3, counts = c(1, 2, 1))
range(hd) # returns 1 3

HistDat documentation built on April 6, 2021, 9:08 a.m.