From ggrothendieck at volcanomail.com  Sat Sep 13 21:09:05 2003
From: ggrothendieck at volcanomail.com (Gabor Grothendieck)
Date: Sun Sep 14 05:08:23 2003
Subject: [Rd] bug or feature? (PR#4150)
Message-ID: <20030914030905.BE713E4B9@sitemail.everyone.net>

Have a look at the identical function:

> identical(1,"1")
[1] FALSE
> identical(as.numeric(1),"1")
[1] FALSE
> identical(as.numeric(1),as.character("1"))
[1] FALSE
> identical(1,1)
[1] TRUE

--- axel.benz@iao.fhg.de wrote:
>Full_Name: Axel Benz
>Version: 1.7.1
>OS: Windows
>Submission from: (NULL) (137.251.33.43)
>
>
>This feature seems to be a basic bug:
>
>> 1=="1"
>[1] TRUE
>> as.numeric(1)=="1"
>[1] TRUE
>> as.numeric(1)==as.character("1")
>[1] TRUE
>
>isn't it necessary to distinguish beteen numbers and characters??
>
>Best Regards,
>Axel
>
>______________________________________________
>R-devel@stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel


[Rd] bug or feature? (PR#4150)
Gabor Grothendieck