



Dear all,

I have the impression that the function invalid from gtools is not
really working as I would expect it to do for factors:

Browse[1]> invalid(as.factor(NA))
[1] FALSE
Browse[1]> invalid(as.numeric(NA))
[1] TRUE

I would exptect that
> invalid(as.factor(NA))
is also TRUE.

Maybe this should be changed in a consistent way which also works in
similar cases for other classes.
One could possibly use
> else return(all(is.na(as.vector(x))))

Any better suggestions?

Best regards,

Stefan

	[[alternative HTML version deleted]]


