[R] Find interval between numbers in list or vector

alend alend.ramzy at gmail.com
Fri Feb 10 13:33:38 CET 2012


hi,

  I have a vector as follow:

  myVec = c(1,4,10,30)

How can I get a vector that show the interval of the numbers.

 I need to get this result:

  distance
>3,6,20

--
View this message in context: http://r.789695.n4.nabble.com/Find-interval-between-numbers-in-list-or-vector-tp4376115p4376115.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list