Skip to content
Prev 10454 / 398503 Next

nchar on data.frames

Admittedly "protected by `I'" may not immediately conjure up the
particular construction shown below (although there is an example in the
help for data.frame() as well).  It doesn't mean that the text itself has
to begin with I, it means (as shown below) that the variable has to be
specified as I(x) rather than x itself.  This could be clumsy if for
example you wanted to convert a many-columned matrix to a data frame; I
guess you could do it with a loop (I just tried to figure out how to do it
with lapply() and a function levels(x)[x] which turns a factor back into a
text string, but it didn't work ...)

   Ben
On Wed, 28 Mar 2001, David White wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._