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.

Author

Steven P. Sanderson II, MPH

Examples

x <- mtcars$mpg

rw_range(x)
#> [1] 23.5