[R] data.frame to character

Gabor Grothendieck ggrothendieck at gmail.com
Fri Jun 10 14:35:11 CEST 2005


On 6/10/05, Muhammad Subianto <subianto at 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)




More information about the R-help mailing list