gsi.addclass          package:compositions          R Documentation

_I_n_t_e_r_n_a_l _f_u_n_c_t_i_o_n: _g_i_v_e _a_n _o_b_j_e_c_t _a _d_e_r_i_v_e_d _s_u_b_c_l_a_s_s

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

     This function just extends the class of an object by the given
     class.

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

     gsi.addclass( x , cls)

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

       x: The object

     cls: the new additional class

_V_a_l_u_e:

     The object x with additional class attached.

_N_o_t_e:

     Do not use gsi.* functions directly since they are internal
     functions of the package

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

     gsi.addclass(1:10,"goofy")

