On Wed, 9 Oct 2002 gregory_r_warnes@groton.pfizer.com wrote:
------------------------------ Create a very simple data frame containing an factor and a character vector each containing a missing value:
> x <- data.frame( a=c("",NA), b=c(1,NA) )
Conversion to a matrix treats the two missing values differently:
Yes, as.matrix.data.frame() uses format() to make character strings, and it needs to check for NA as well -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._