Learn R Programming

RandomWalker (version 0.1.0)

crange: Cumulative Range

Description

A function to return the cumulative range of a vector.

Usage

crange(.x)

Value

A numeric vector

Arguments

.x

A numeric vector

Author

Steven P. Sanderson II, MPH

Details

A function to return the cumulative range of a vector. It uses max(.x[1:k]) - min(.x[1:k]) as the basis of the function.

See Also

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

Examples

Run this code

x <- mtcars$mpg

crange(x)

Run the code above in your browser using DataLab