dataViewer {RGtkViewers}R Documentation

Data Grid Viewer

Description

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.

Usage

dataViewer(data, win = gtkWindow(show = FALSE), title = deparse(sys.call()[[2]]), changed = NULL)

Arguments

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.

Value

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.

Note

The column and row titles don't seem to be appearing

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.omegahat.org/RGtk, http://www.ggobi.org http://www.gtk.org

See Also

gtkSheetNew

Examples

 data(mtcars)
 dataViewer(mtcars)

[Package RGtkViewers version 0.7-4 Index]