Learn R Programming

RandomWalker (version 0.1.0)

rw_range: Range

Description

A function to return the range of a vector.

Usage

rw_range(.x)

Value

A numeric vector

Arguments

.x

A numeric vector

Author

Steven P. Sanderson II, MPH

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()

Examples

Run this code
x <- mtcars$mpg

rw_range(x)

Run the code above in your browser using DataLab