Displaying 1 result from an estimated 1 matches for "18927968p18927968".
Did you mean:
tp18927968p18927968
2008 Aug 11
3
R-help? how to take difference in next two elements
...ke to take difference for a sequence a between a_i and a_i-2, for
instance,
a<-c(2,3,4,8,1)
I need (2, 5, -3) as a result. If not using a for loop, can anyone help me?
Thanks a lot.
Dot
--
View this message in context: http://www.nabble.com/R-help--how-to-take-difference-in-next-two-elements-tp18927968p18927968.html
Sent from the R help mailing list archive at Nabble.com.