[R] selecting f+gth element.

Adaikalavan Ramasamy gisar at nus.edu.sg
Wed Apr 9 04:34:57 CEST 2003


Try this 

s <- seq(from=f, to=(f+g), by=p) # going in steps of p 
new.data <- data[ ,-s]


-----Original Message-----
From: Dave Caccace [mailto:pikachoodave at yahoo.co.uk] 
Sent: Tuesday, April 08, 2003 6:26 PM
To: r-help at stat.math.ethz.ch
Subject: [R] selecting f+gth element.

Hallo 
I want to remove the fth, f+pth, f+2pth element from a
vector and I'm not sure how to do this. Any help woudl
be much appreciated!
Thank You,
Dave

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list