[R] Deltas or changes

Karl Ove Hufthammer karl at huftis.org
Tue Mar 9 15:21:00 CET 2010


On Tue, 9 Mar 2010 05:37:52 -0800 (PST) ManInMoon <xmoon2000
@googlemail.com> wrote:
> How can I generate a vector of differences between each elemtn of an vector?

diff(x)

-- 
Karl Ove Hufthammer



More information about the R-help mailing list