goulard@toulouse.inra.fr
2003-Jul-08 18:31 UTC
[Rd] unique in versions 1.6.2 and 1.5.1 (PR#3435)
Full_Name: goulard Version: 1.6.2 and 1.5.1 OS: Submission from: (NULL) (193.54.96.5) The function unique behaves differently in version 1.6 and in version 1.5. R : Copyright 2003, The R Development Core Team Version 1.6.2 (2003-01-10)> Tz[1] 0 2 4 1 3 2 9 9 3 9 1 6 7 3 8 2 2 8 2 0 9 6 8 1 4> unique(Tz)[1] 0 2 4 1 3 9 6 7 8> unique(matrix(Tz,5,5))[,1] [,2] [,3] [,4] [,5] [1,] 0 2 1 2 9 [2,] 2 9 6 2 6 [3,] 4 9 7 8 8 [4,] 1 3 3 2 1 [5,] 3 9 8 0 4 R : Copyright 2002, The R Development Core Team Version 1.5.1 Patched (2002-08-28)> unique(Tz)[1] 0 2 4 1 3 9 6 7 8> unique(matrix(Tz,5,5))[1] 0 2 4 1 3 9 6 7 8
Peter Dalgaard BSA
2003-Jul-08 18:49 UTC
[Rd] unique in versions 1.6.2 and 1.5.1 (PR#3435)
goulard@toulouse.inra.fr writes:> Full_Name: goulard > Version: 1.6.2 and 1.5.1 > OS: > Submission from: (NULL) (193.54.96.5) > > > The function unique behaves differently in version 1.6 and in version 1.5.Neither of those versions are current, and the change was announced clearly in the NEWS file under NEW FEATURES for v. 1.6.0: o duplicated() and unique() have methods for matrices and arrays (based on ideas from Jens Oehlschl?gel). So in which sense is this a bug??? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907