Skip to content
Prev 305764 / 398506 Next

extracting column and regular interval in R

x[c(TRUE, rep(FALSE, 36)),]

and let recycling work its magic!

To concretize:

x <- 1:100

x[c(TRUE, rep(FALSE, 4))]

Cheers,
Michael
On Tue, Sep 18, 2012 at 3:55 PM, eliza botto <eliza_botto at hotmail.com> wrote: