[R] Basic question on function "identical"

John Welsh jwelsh at skcc.org
Fri Dec 12 23:47:07 CET 2003



> for(i in c(1:5))
+ {
+ print(identical(i,1))
+ }

[1] FALSE
[1] FALSE
[1] FALSE
[1] FALSE
[1] FALSE

Why don't I get:

[1] TRUE
[1] FALSE
[1] FALSE
[1] FALSE
[1] FALSE


John Welsh
Associate Professor
Sidney Kimmel Cancer Center
10835 Altman Row
San Diego, CA 92121
(858) 450-5990 ex.282
jwelsh at skcc.org




More information about the R-help mailing list