varDiff {matrixStats}R Documentation

Estimation of discrepancies off sequential order differences in a vector

Description

Estimation of discrepancies off sequential order differences in a vector.

Usage

 varDiff(x, na.rm=FALSE, diff=1, ...)
 sdDiff(x, na.rm=FALSE, diff=1, ...)
 madDiff(x, na.rm=FALSE, diff=1, ...)

Arguments

x A numeric vector of length N.
na.rm If TRUE, NAs are excluded, otherwise not.
diff The positional distance of elements for which the difference should be calculated.
... Not used.

Value

Returns a numeric scalar.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

See diff().


[Package matrixStats version 0.1.6 Index]