[R] is.null doesn't work

Atte Tenkanen attenka at utu.fi
Thu Jul 12 21:46:37 CEST 2007


Hi,

What's wrong here?:

> v=c(`-`,`+`,1,`^`,`^`,NA,NA,"X",9,"X",2)
> i2=16
> v[i2]
[[1]]
NULL

> is.null(v[i2])
[1] FALSE

Is it a bug or have I misunderstood something?

Atte Tenkanen
University of Turku, Finland



More information about the R-help mailing list