loadModel               package:iSPlot               R Documentation

_L_o_a_d _a _M_o_d_e_l (_a_n_d _a _M_V_C) _o_b_j_e_c_t _i_n_t_o _m_v_c_E_n_v _e_n_v_i_r_o_n_m_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     loadModel creates a model object and a MVC object and loads them
     into the  environment variable, MVCList, in mvcEnv.  This function
     will  be called by the handleMessage method for a gAddDataMessage
     object.  Note  that it is this function that ensures that there is
     a one to one  correspondence between a model and a MVC object.

_U_s_a_g_e:

     loadModel(data, name)

_A_r_g_u_m_e_n_t_s:

    data: the dataframe or matrix 

    name: the data set name - a character string 

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'getData', 'loadData'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         # these should be called by selecting Open Data under the File menu or
         # by using the loadData function
         data(USArrests)
         loadModel(USArrests, "USArrests")
       }

