Skip to contents

A function to return the range of a vector.

Usage

rw_range(.x)

Arguments

.x

A numeric vector

Value

A numeric vector

Details

A function to return the range of a vector. It uses max(.x) - min(.x) as the basis of the function.

See also

Other Vector Function: cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), crange(), csd(), cskewness(), cvar(), euclidean_distance(), kurtosis_vec(), skewness_vec()

Author

Steven P. Sanderson II, MPH

Examples

x <- mtcars$mpg

rw_range(x)
#> [1] 23.5