powered by
eDiff(X, pad = NA)
eDiff( 1:8 ) eDiff( as.data.frame(1:8) ) eDiff( matrix(1:8,ncol=2) )
Run the code above in your browser using DataLab