| rowDiffs {matrixStats} | R Documentation |
Calculates difference for each row (column) in a matrix.
rowDiffs(x, ...) colDiffs(x, ...)
x |
A numeric NxK matrix. |
... |
Not used. |
Returns a numeric Nx(K-1) or (N-1)xK matrix.
Henrik Bengtsson (http://www.braju.com/R/)
Internally diff() is used.