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
--- [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