Skip to content
Prev 305787 / 398506 Next

extracting column at regular intervals starting from different columns

On Sep 18, 2012, at 10:21 AM, eliza botto wrote:

            
This will start at 4 and then be recycled every succeeding 37th item:

offset1= 3; offset2 = 37
c( rep(FALSE, 3), TRUE, rep(FALSE, offset2-offset1-1) )

Observe:
[1]  4 41 78
David Winsemius, MD
Alameda, CA, USA