?as.data.frame says the following in Details.

"Character variables are converted to factor columns unless protected by 
\code{\link{I}}."

It seems like this should be qualified with "if \code{stringsAsFactors} is 
true", as in ?data.frame.

Similarly, ?data.frame says that

"If a list or data frame or matrix is passed to \code{data.frame} it is as if 
each component or column had been passed as a separate argument (except for 
matrices protected by \code{\link{I}})."

This again seems out of date as list columns can be protected with I(). Does it 
also make sense to note that matrix and list columns can be protected in the 
analogous part of ?as.data.frame (par. 4 in Details)? I'm not sure about data 
frames, as these can be protected with I() but may well give an error when 
printing.

Steve

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to