| Library: | xplore |
| See also: | tdiff |
| Macro: | diff | |
| Description: | Computes first differences (along the rows) of an array. |
| Usage: | dx = diff(x) | |
| Input: | ||
| x | array, d1 x d2 x ... x dn | |
| Output: | ||
| dx | array, (d1-1) x d2 x ... x dn, first differences along the rows of x. | |
library("xplore")
randomize (0)
x = (1:4)|6
diff(x)
Contents of object y [1,] 0 [2,] 0 [3,] 0 [4,] 0 [5,] 1
| Library: | xplore |
| See also: | tdiff |