Re: [Rd] Ordering of values returned by unique

From: Earl F. Glynn <>
Date: Thu 30 Sep 2004 - 02:39:52 EST

"Tony Plate" <> wrote in message
> I depend on this all the time, so I also checked some references. In the
> Blue book the documentation for the functions unique and duplicated is
> combined and implies the above. In MASS 4th Ed, the page referred to by
> the index entry for 'unique' (p48, #9 in my copy) states that 'unique'
> removes duplicates as identified by 'duplicated', which implies that the
> order of retained elements is not changed. The Green book has no index
> entry for 'unique'. In S-plus the implementation of unique.default(x)
> x[!duplicated(x)].

So what is the "Blue book", the "Green book", and MASS 4th Ed?

efg mailing list Received on Thu Sep 30 03:15:27 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:25 EST