[R] selecting f+gth element.

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Tue Apr 8 15:36:18 CEST 2003



Dave Caccace wrote:
> 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


x <- x[- c(f, f+p, f+2*p)]

Sundar



More information about the R-help mailing list