dataViewer            package:RGtkViewers            R Documentation

_D_a_t_a _G_r_i_d _V_i_e_w_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

    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. 

_V_a_l_u_e:

     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.

_N_o_t_e:

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

_A_u_t_h_o_r(_s):

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

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.omegahat.org/RGtk>, <URL: http://www.ggobi.org>
     <URL: http://www.gtk.org>

_S_e_e _A_l_s_o:

     'gtkSheetNew'

_E_x_a_m_p_l_e_s:

      data(mtcars)
      dataViewer(mtcars)

