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