combine             package:randomForest             R Documentation

_C_o_m_b_i_n_e _E_n_s_e_m_b_l_e_s _o_f _T_r_e_e_s

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

     Combine two more more ensembles of trees into one.

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

     combine(...)

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

     ...: two or more objects of class 'randomForest', to be combined
          into one.

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

     An object of class 'randomForest'.

_N_o_t_e:

     The 'confusion', 'err.rate', 'mse' and 'rsq' components (as well
     as the corresponding components in the 'test' compnent, if exist)
     of the combined object will be 'NULL'.

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

     Andy Liaw andy_liaw@merck.com

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

     'randomForest', 'grow'

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

     data(iris)
     rf1 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
     rf2 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
     rf3 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
     rf.all <- combine(rf1, rf2, rf3)
     print(rf.all)

