[18704] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] RE: Removing identical obervations

daemon@ATHENA.MIT.EDU (Gunter, Bert)
Thu Jul 22 08:53:29 1999

Message-Id: <199907221249.HAA29740@wubios.wustl.edu>
Date: Thu, 22 Jul 1999 08:47:50 -0400
From: "Gunter, Bert" <bert_gunter@merck.com>
To: s-news@wubios.wustl.edu,
        "'Venables, Bill (CMIS, Cleveland)'" <Bill.Venables@cmis.CSIRO.AU>
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7BIT


> This is sometimes a useful idiom, but it's rather lazy.  Suppose your data
> frame is "dat"
> 
> newdat <- dat[!duplicated(do.call("paste", c(as.list(dat), list(sep =
> "\t")))), ]
> 
> should remove all exactly repeated rows.  In your case it will probably be
> OK, 
> 
*****
> but if you had really large numbers of variables you might like to think
> again.
******
> Bill Venables.
> 
Bill:

I would appreciate amplification on your last remark between the ****. Why
would you like to think again in this case and how how else would you do it?


Bert Gunter
Biometrics Research RY 32-305
Merck & Company
P.O. Box 2000
Rahway, NJ 07065-0900
Phone: (732) 594-7765   Fax: (732) 594-1565

"The business of the statistician is to catalyze the scientific learning
process."      -- George E.P. Box
-----------------------------------------------------------------------
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

home help back first fref pref prev next nref lref last post