reset                 package:iSPlot                 R Documentation

_R_e_s_e_t _a _d_a_t_a _s_e_t _t_o _i_t_s _o_r_i_g_i_n_a_l _s_t_a_t_e

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

     reset removes any changes that have been made to a data set in
     dfList  in dataEnv since the data set was loaded.  dfList is the
     data  environment variable the holds the loaded data sets.  reset
     is called  by choosing Reset under the Edit menu.

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

     reset(dfName)

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

  dfName: the dataframe name - a character string 

_W_a_r_n_i_n_g:

     Removing the changes to the data set is permanent.

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

     Elizabeth Whalen

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

     'updateData'

_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"]]
       # should call reset using Reset under the Edit menu
       reset("USArrests")
       # to see the results
       get("dfList",dataEnv)[["USArrests"]][["curDF"]]    

