Ordering of values returned by unique
Hi, If you go to the frame on www.r-project.org -> documentation -> publication and search for "blue book" "green book" you will find that this refers to two books : /"The New S Language" //"Programming with Data" respectively / Mass refers to "/Modern Applied Statistics with S"/ /E
Earl F. Glynn wrote:
"Tony Plate" <tplate@blackmesacapital.com> wrote in message news:6.1.0.6.2.20040929094231.05e42a00@mailhost.blackmesacapital.com...
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)
uses
x[!duplicated(x)].
So what is the "Blue book", the "Green book", and MASS 4th Ed? efg
______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin _ tel: 0049-30-83875219 'v' http://www.molgen.mpg.de/~wolski / \ mail: witek96@users.sourceforge.net ---W-W---- wolski@molgen.mpg.de