crange: Cumulative Range

View source: R/vec-cumulative-functions.R

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


RandomWalker documentation built on Oct. 23, 2024, 5:07 p.m.