deleteMVC               package:iSPlot               R Documentation

_D_e_l_e_t_e _a _M_V_C _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     deleteMVC will remove a MVC object, which means that the data set
     is removed and all of its views are closed.  deleteMVC performs
     the same functionality as the Delete MVC menu item under the Edit
     menu on the control window.  This function is meant to be called
     by users that are not using the GUI.  The active MVC object cannot
     be deleted.  Only non-active MVC objects can be deleted.

_U_s_a_g_e:

     deleteMVC(dMVC)

_A_r_g_u_m_e_n_t_s:

    dMVC: the name of the model (MVC) object to be removed 

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'loadData',  'getModelNames', 'getActiveMVC'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         loadData("USArrests")
         loadData("USJudgeRatings")
         setActiveMVC("USArrests")
         createSpreadsheet()
         setActiveMVC("USJudgeRatings")
         createSpreadsheet()
         # now delete the USArrests MVC (which is not active)
         deleteMVC("USArrests")
       }

