powered by
A function to return the cumulative range of a vector.
crange(.x)
A numeric vector
Steven P. Sanderson II, MPH
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.
max(.x[1:k]) - min(.x[1:k])
Other Vector Function: cgmean(), chmean(), ckurtosis(), cmean(), cmedian(), csd(), cskewness(), cvar(), euclidean_distance(), kurtosis_vec(), rw_range(), skewness_vec()
cgmean()
chmean()
ckurtosis()
cmean()
cmedian()
csd()
cskewness()
cvar()
euclidean_distance()
kurtosis_vec()
rw_range()
skewness_vec()
x <- mtcars$mpg crange(x)
Run the code above in your browser using DataLab