From w.huber at dkfz-heidelberg.de  Sun Sep 14 23:33:11 2003
From: w.huber at dkfz-heidelberg.de (w.huber@dkfz-heidelberg.de)
Date: Sun Sep 14 22:35:10 2003
Subject: [Rd] bug or feature? (PR#4150)
In-Reply-To: <200309131137.h8DBbSJH021576@pubhealth.ku.dk>
References: <200309131137.h8DBbSJH021576@pubhealth.ku.dk>
Message-ID: <Pine.GSO.4.53.0309142225010.4913@herkules>

Hi Axel,

You may wish to consult the man page for the '==' operator and the
'identical' function.

> identical(1, "1")
[1] FALSE
> ? "=="
> ? identical

And probably your notion of a "bug" is too wide: please have a look at the
section "R Bugs", 9.1 in the R FAQ.

Best regards
   Wolfgang

-------------------------------------
Wolfgang Huber
Division of Molecular Genome Analysis
German Cancer Research Center
Heidelberg, Germany
Phone: +49 6221 424709
Fax:   +49 6221 42524709
Http:  www.dkfz.de/mga/whuber
-------------------------------------

On Sat, 13 Sep 2003 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)
w.huber@dkfz-heidelberg.de