Ah, now that you ask that I realize I was making an assumption assumption about what you want to achieve. Those two lines remove coords where the y value is equal to that of the preceding coord.
That may or may not be what you want to do. To visualize what is happening, type plot(m) before doing those two lines (you'll see most points arranged in horizontal pairs), the execute the two lines and do plot(m) again. Michael On 15 September 2010 21:05, Alaios <ala...@yahoo.com> wrote: > Thank you very much. I am trying to execute it line by line to get some > understanding how this works. > Could you please explain me what these two lines do? > tie <- m[,2] == c(-Inf, m[-nrow(m),2]) > m <- m[ !tie, ] > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.