Skip to content
Prev 168191 / 398502 Next

comparing the previous and next entry of a vector

Try this:
x nxt prv
1 1   2  NA
2 2   3   1
3 3   4   2
4 4   5   3
5 5   2   4
6 2   6   5
7 6  NA   2
[1] 2
On Sun, Jan 25, 2009 at 5:29 PM, J?rg Gro? <joerg at licht-malerei.de> wrote: