Skip to content
Prev 284883 / 398502 Next

Find interval between numbers in list or vector

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
--
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.