s-news
[Top] [All Lists]

Re: Different behaviour of unique(), R vs. Splus.

To: "Liaw, Andy" <andy_liaw@merck.com>
Subject: Re: Different behaviour of unique(), R vs. Splus.
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Tue, 29 Jun 2004 21:19:24 +0100 (BST)
Cc: "'Rolf Turner'" <rolf@math.unb.ca>, <r-help@stat.math.ethz.ch>, <s-news@wubios.wustl.edu>
In-reply-to: <3A822319EB35174CA3714066D590DCD504AF7FA8@usrymx25.merck.com>
On Tue, 29 Jun 2004, Liaw, Andy wrote:

> The source of the incompatibility:
> 
> In S-PLUS 6.2:
> 
> > methods("unique")
>                splus            splus          menu                 splus 
>  "unique.data.frame" "unique.default" "unique.name" "unique.rowcol.names"
> 
> 
> In R-1.9.1:
> 
> > methods("unique")
> [1] unique.array      unique.data.frame unique.default    unique.matrix    
> 
> 
> Unless there's some sort of coordination (or even just separate effort) on
> either/both R Core and Insightful developers to make sure there's agreement
> on what methods to provide in the base code, such problem can only get
> worse, not better, I guess.

There are plans to that effect, but R moves much faster than a commercial 
product such as S-PLUS.

It seems to me a bad idea that unique (or foo) does different things for 
matrices and data frames, for as we see frequently, many users do not 
distinguish between them.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


<Prev in Thread] Current Thread [Next in Thread>