s-news
[Top] [All Lists]

[no subject]

To: s-news@wubios.wustl.edu
From: Cavenaugh <sjcav@aros.net>
Date: Tue, 23 Feb 1999 17:11:05 -0700
Sender: owner-s-news@wubios.wustl.edu
Hi,

        I have a data frame X and a vector Y.  Data frame X has columns A, B and
C.  Column A of data frame X is as the following: 1, 2, 3, 4, 5.  Vector Y
is: 1, 2, 3.

        I want to to get the subset of X, which only includes the rows where
column A equals 4 or 5, i.e., the subset of X only contains the rows whose
value in column A is not equal to any elements in vector Y.  Besides using
loop, is there an easy way to achieve this?  Thanks for your help in advance.

---Sharon 

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [no subject], Cavenaugh <=