Skip to content
Prev 314782 / 398506 Next

Refer to previous row

Hello,

Try the following.

dat$X3 <- c(0L, dat$ID[-1]  <= dat$ID[-nrow(dat)])

Hope this helps,

Rui Barradas
Em 07-01-2013 13:33, Paolo Donatelli escreveu: