[R] data frame

Gabor Grothendieck ggrothendieck at gmail.com
Mon Apr 23 17:40:40 CEST 2007


Its not usual to represent structures in this form in R but you
can do it if you really want:

   data.frame(A = letters[1:3], B = 1:3, C = I(list(2, 1:6, 9)))

Note the I (capital i) to make sure the list gets passed in asis.


On 4/23/07, elyakhlifi mustapha <elyakhlifi_mustapha at yahoo.fr> wrote:
> hello,
> I wanna print something like this
>
> Class          Levels           Values
> Id_TrT1             1                 2
> Id_Geno            7                64208   64209  64210  64211  64212  64213  64214
> Id_Rep              2                 12
>
> Is it possible?
> I have some problem I think taht I should use data.frame with matrix but I'm not sure and perhaps it's false
>
>
>
> ___________________________________________________________________________
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list