Skip to content
Prev 166055 / 398502 Next

prblem with NA

Wacek Kusnierczyk wrote:
ah, that was about literals again:

is(TRUE+0L)
# integer, not numeric

is.integer(TRUE+0L)
# TRUE

anyway,

is.integer(TRUE)
# FALSE

so how logical vectors will be treated depends on the context, though
integer is (or it seems so) closer in the type hierarchy than double.

vQ