[R] data frame
Schmitt, Corinna
Corinna.Schmitt at igb.fraunhofer.de
Mon Apr 23 16:49:33 CEST 2007
You can build the data frame with:
dat <- data.frame(Class=I("Id_TrT1"), Levels=I("1"), Values=I("2"))
new.info <- c(Class="Id_Geno", Levels="7" , Values="64208 64209 64210 64211 64212 64213 64214")
dat <- rbind(dat, new.info)
dat
new.info <- c(Class=" Id_Rep ", Levels="2" , Values="12")
dat <- rbind(dat, new.info)
dat
It works. The R console result can be seen in the attachment.
CU, Corinna
-----Ursprüngliche Nachricht-----
Von: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] Im Auftrag von elyakhlifi mustapha
Gesendet: Montag, 23. April 2007 16:02
An: R-help at stat.math.ethz.ch
Betreff: [R] data frame
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