rangeVal: Calculate range statistic

View source: R/rangeVal.R

rangeValR Documentation

Calculate range statistic

Description

A simple wrapper for diff(range(x)), so max(x) - min(x).

Usage

rangeVal(x, na.rm = FALSE)

Arguments

x

[numeric]
The vector.

na.rm

[logical(1)]
If FALSE, NA is returned if an NA is encountered in x. If TRUE, NAs are disregarded. Default is FALSE

Value

[numeric(1)].


BBmisc documentation built on Nov. 6, 2026, 1:06 a.m.