crange {RandomWalker}R Documentation

Cumulative Range

Description

A function to return the cumulative range of a vector.

Usage

crange(.x)

Arguments

.x

A numeric vector

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.

Value

A numeric vector

Author(s)

Steven P. Sanderson II, MPH

See Also

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

Examples


x <- mtcars$mpg

crange(x)


[Package RandomWalker version 0.1.0 Index]