RE: [R] selecting f+gth element.

About this list Date view Thread view Subject view Author view Attachment view

From: Adaikalavan Ramasamy (gisar@nus.edu.sg)
Date: Wed 09 Apr 2003 - 12:34:57 EST


Message-id: <024D6AEFCB92CB47BA1085751D184BB80105F23B@MBXSRV03.stf.nus.edu.sg>

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@yahoo.co.uk]
Sent: Tuesday, April 08, 2003 6:26 PM
To: r-help@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@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:41 EST