reset-methods           package:goCluster           R Documentation

_R_e_s_e_t _a _g_o_C_l_u_s_t_e_r-_m_o_d_u_l_e

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

     This method can be used on all 'goCluster'-objects and will delete
     any intermediate results. This allows to redo the analysis after
     changing the configuration of the 'goCluster'-object.

_M_e_t_h_o_d_s:

     _o_b_j_e_c_t = "_c_l_u_s_t_e_r_M_o_d_u_l_e" The method is only defined for the
          'clusterModule'-class. But it is available for any
          'goCluster'-object since all classes made available by the
          'goCluster'-package extend the basic 'clusterModule'-class.

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

     Gunnar Wrobel, <URL: http://www.gunnarwrobel.de>.

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

     'clusterModule-class'.

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

     ## Load small a test dataset
     data(benomylsetupsmall)

     ## Create an empty goCluster object
     test <- new("goCluster")

     ## Assign the configuration to the object and directly execute it
     execute(test) <- benomylsetupsmall

     ## Change the configuration
     ## (Number of clusters are changed to 3)
     test@algo@clusters <- 3

     ## After that it should not be executable again
     failure <- try(execute(test))
     if (!inherits(failure, "try-error")) stop("The goCluster object should not be executable a second time!")

     ## Reset the object
     test <- reset(test)
     ## This should run fine
     test <- execute(test)

       

