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 Sept. 29, 2022, 5:12 p.m.

Related to rangeVal in BBmisc...