Re: [R] data.frame to character

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri 10 Jun 2005 - 22:35:11 EST

On 6/10/05, Muhammad Subianto <subianto@gmail.com> wrote:
> Hi,
> Excuse me for this simple question.
> How to convert as.data.frame to as.character?
>
> ?data.frame
>
> > L3 <- LETTERS[1:3]
> > L10 <- LETTERS[1:10]
> > d <- data.frame(cbind(x=c("XYZ"), y=L10), fac=sample(L3, 10, repl=TRUE))

d[] <- as.matrix(d)



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 10 22:39:44 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:29 EST