[R] identical()

Wu Gong wg2f at mtmail.mtsu.edu
Tue Aug 17 00:00:07 CEST 2010


Hi John,

They are different as Erik said.

> identical(a,b) 
[1] FALSE
> row.names(a)
[1] "2" "4" "6" "8"
> row.names(b)
[1] "1" "3" "5" "7"
> row.names(a) <- NULL
> row.names(b) <- NULL
> identical(a,b) 
[1] TRUE


Regards,

Wu


array chip wrote:
> 
>> a
>          a b
> 2 10011048 L
> 4 10011048 R
> 6 10011049 L
> 8 10011049 R
>> b
>          a b
> 1 10011048 L
> 3 10011048 R
> 5 10011049 L
> 7 10011049 R
> 
>> identical(a,b)
> [1] FALSE
> 


-----
A R learner.
-- 
View this message in context: http://r.789695.n4.nabble.com/identical-tp2327537p2327553.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list