[R-gui] gtable question

Antje niederlein-rstat at yahoo.de
Tue Aug 26 11:47:15 CEST 2008


Hello,

I wanted to display a table with only one column and I had some problems, so I 
tried a very simple example and still got problems. Can anybody tell me what's 
wrong with the second table?

# that looks nice
m <- getCRANmirrors()[,c(1,4)]
gtable(m, cont = TRUE)

# that looks weird, not showing the data but the rownames
mm <- data.frame(m[,1])
colnames(mm) <- "Name"
gtable(mm, cont = TRUE)

Thanks a lot for any help!

Antje



More information about the R-SIG-GUI mailing list