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 [EMAIL PROTECTED] 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 > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel > ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel