Apply a finite difference operator to a numeric series.
Usage
"diff"(x,lag=1,...)
Arguments
x
A scidb object with a numeric attribute.
lag
An intereger lag value (see description).
...
Optional arguments, not used.
Value
If 'x' is a vector of length 'n' and starting index 1, then the
computed result is equal to the difference
'x[(1+lag):n] - x[1:(n-lag)]'.If 'x' is a matrix then the difference operations are carried out
on each column separately.SciDB missing (NULL) and NaN values propagate.