Rdocumentation
powered by
Learn R Programming
PANICr (version 0.0.0.2)
mydiff: Difference a matrix
Description
This function differences an entire matrix by some defined constant k.
Usage
mydiff(x,k)
Arguments
x
The NxT matrix to be differenced.
k
The length of difference to perform on each vector of the NxT matrix.
Value
xx A matrix that has been differenced by k periods ago.