dataViewer {RGtkViewers} | R Documentation |
Displays a data frame in a spreadsheet like data grid display. This allows the user to edit the cells and have a function be invoked when any value is changed.
dataViewer(data, win = gtkWindow(show = FALSE), title = deparse(sys.call()[[2]]), changed = NULL)
data |
the data frame to be dislayed |
win |
the window in which to display the data grid. If this is NULL, just the scrolled window containing the data grid/sheet is created. It is up to the caller to put that within a GUI. |
title |
the title to use when creating the GtkSheet object. |
changed |
a function that is called if the user changes any cell in the sheet from its previous value. This is called with 4 arguments: the sheet object, the row and column indices (starting at 0), and the new value given as a string. If the function needs access to the data frame, it should capture this in its environment when it is created. |
A list giving the created components:
sheet |
the GtkSheet object |
sw |
the scrolled window widget containing the sheet |
win |
the value of the win argument. |
The column and row titles don't seem to be appearing
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk, http://www.ggobi.org http://www.gtk.org
data(mtcars) dataViewer(mtcars)