Reputation: 4895
I want to display data frame table in a new window using Tcl Tk tool. ´tktable´ must be the solution but I don't know how to use it with data frame. Can anyone show me how?
Upvotes: 0
Views: 649
Reputation: 7659
Is this what you want:
library( gWidgets )
x <- data.frame( a = runif( 20 ), b = runif( 20 ) * 100, c = rnorm( 20 ),
d = sample( LETTERS, 20 ), e = 1000:1019, f = rep( "Table Test", 20 ) )
win <- gwindow( "Table", visible = FALSE )
table <- gtable( x, cont = win )
visible( win ) <- TRUE
Upvotes: 1