Skip to content
Prev 66545 / 398502 Next

newbie's question about dataframe

Something like this should do it:

 dat$Z <- with(dat, as.numeric(Y >= Y[order(Y, decreasing=TRUE)[10]]))

Andy