Skip to content
Prev 132713 / 398503 Next

saving while loop values to one vector

Thanks Gabor!
   I never realized there could be a "diff" function. all i was trying to do was to calculate the
iterated differences in a vector. I feel so embarassed, but so happy for using R. 
by the way, i used 
"wave2 <- sort (wave2, decreasing=F)" to sort the values non-decreasingly because the code "i <-
findInterval((wave2[1]), wave2)" doesnt work without this sorting. 
But all that is past now since i found the diff function. 

Thanks again.

abid
____________________________________________________________________________________
Looking for last minute shopping deals?