getRowDataFromDF           package:iSPlot           R Documentation

_R_e_t_u_r_n _c_e_r_t_a_i_n _r_o_w_s _a_n_d _t_h_e_i_r _i_n_d_i_c_e_s _f_r_o_m _a _d_a_t_a_f_r_a_m_e

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

     getRowDataFromDF returns only certain rows and their indices from
     a  dataframe.  This function is useful when wanting to return
     information from a dataframe that just had a few rows changed.  It
     is called by the function, updateSpread, when only a few rows in
     the spreadsheet need to  be updated.

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

     getRowDataFromDF(dfName, data)

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

  dfName: the name of the dataframe 

    data: data is a list with an element called, Rname, that indicates
          which rows to return 

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

rowIndex: the indices of the rows in the dataframe

 rowData: a subset of the dataframe that only includes the changed rows

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

     Elizabeth Whalen

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

     'getData', 'updateSpread'

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

       if (interactive())
       {
         createControlWindow()
         # should load data through Open Data or Open File under the File menu
         data(USArrests)
         loadDFData(USArrests,"USArrests")
         # creating a spreadsheet should occur through View Data under 
         # the Display menu
         createView(type = "spreadView", dataName = "USArrests") 
         # should set the view mode to highlight using the View Mode menu
         setHighlightMode()                
         # now click on a row in the spreadsheet and that will cause 
         # updateSpread to be called - updateSpread will call getRowDataFromDF
         # because only one row will be updated 
         # you can tell it was called because the data and thus, the 
         # spreadsheet will change  
       }

