[Rd] bug or feature? (PR#4150)
Gabor Grothendieck
ggrothendieck at volcanomail.com
Sat Sep 13 21:09:05 MEST 2003
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 at 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 at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
More information about the R-devel
mailing list