s-news
[Top] [All Lists]

Re: [S] identical obervations

To: "Man S. Kwok" <mankwok@phoenix.princeton.edu>
Subject: Re: [S] identical obervations
From: John Thaden <jjthaden@flash.net>
Date: Wed, 21 Jul 1999 10:29:27 -0500
Cc: s-news@wubios.wustl.edu
In-reply-to: <Pine.GSO.4.03.9907210606270.10134-100000@tucson.Princeton. EDU>
References: <19990721020832.94616.qmail@hotmail.com>
Sender: owner-s-news@wubios.wustl.edu
: I have a data set of 6 varaibles and 2000 observations. I need to remove
: repeated observations. Is there a quick way to locate exactly indentical
: observations in S, without resorting to looping? Thanks in advance.

>  D <- D[!(duplicated(D$x1) & duplicated(D$x2) & duplicated(D$x3)
+            & duplicated(D$x4) & duplicated(D$x5) & duplicated(D$x6)), ]

John Thaden
Little Rock, Arkansas, USA
-----------------------------------------------------------------------
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>