modify                package:iSPlot                R Documentation

_M_o_d_i_f_y _o_n_e _o_r _m_o_r_e _p_o_i_n_t_s _i_n _a _d_a_t_a _s_e_t

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

     modify can change one more points (a point being defined by a row
     and a  column index) at a time in a data set loaded in dfList in
     dataEnv.   dfList is the data environment variable that contains
     the loaded  data sets.  modify will check that the data to be
     added is of the  correct type to match the other data in that
     column by calling  checkIndivTypes.

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

     modify(dfName, Rname, Cname, data)

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

  dfName: the dataframe name - a character string 

   Rname: the row name or index (may be a vector of length greater than
          or equal to 1) 

   Cname: the column name or index (may be a vector or length greater
          than or equal to 1) 

    data: the new data to be placed in these points 

_D_e_t_a_i_l_s:

     Note that Rname, Cname and data must be the same length.  Rname
     and Cname are vectors, but data is a list.

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

     Elizabeth Whalen

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

     'checkIndivTypes', 'gUpdateDataMessage-class'

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

       # should load data through Open Data or Open File under the File menu
       data(USArrests)
       loadDFData(USArrests,"USArrests")
       # should modify using the control window (by choosing the view mode and
       # then clicking on a plot)
       modify("USArrests",Rname=c("Massachusetts","Ohio"),Cname=c("color","color"),data=c("red","green"))
       # to see the results
       get("dfList",dataEnv)[["USArrests"]][["curDF"]]

