[Rd] unique in versions 1.6.2 and 1.5.1 (PR#3435)

goulard at toulouse.inra.fr goulard at toulouse.inra.fr
Tue Jul 8 19:31:14 MEST 2003


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



More information about the R-devel mailing list