updateData              package:iSPlot              R Documentation

_A_n _i_n_t_e_r_f_a_c_e _f_u_n_c_t_i_o_n _t_o _u_p_d_a_t_e _d_a_t_a

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

     updateData is an interface function to update data.  So whenever
     the whole data set needs to be updated, this function is called. 
     This function will be useful if the user wants to add new data
     types or  new ways of storing the data.

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

     updateData(type, name, newData, ...)

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

    type: the type of data to update, currently only "dataframe" is
          supported 

    name: the name of the data to update 

 newData: the new data 

     ...: any extra parameters future users may need 

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

     Elizabeth Whalen

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

     'getData'

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

       data(USArrests)
       loadDFData(USArrests,"USArrests") 

       # now slightly change the data 
       changeUSArrests<-get("dfList",dataEnv)[["USArrests"]][["curDF"]]
       changeUSArrests[,match("color",names(changeUSArrests))]<-rep("blue",
                          nrow(changeUSArrests))
       updateData(type="dataframe",name="USArrests",newData=changeUSArrests)
       # to see the changes
       x<-getData(type="dataframe",name="USArrests")

