multi2di                 package:ape                 R Documentation

_C_o_l_l_a_p_s_e _a_n_d _R_e_s_o_l_v_e _M_u_l_t_i_c_h_o_t_o_m_i_e_s

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

     These two functions collapse or resolve multichotomies in
     phylogenetic trees (objects of class '"phylo"').

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

     multi2di(phy)
     di2multi(phy, tol = 1e-08)

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

     phy: an object of class '"phylo"'.

     tol: a numeric value giving the tolerance to consider a branch
          length significantly greater than zero.

_D_e_t_a_i_l_s:

     'multi2di' transforms all multichotomies into a series of
     dichotomies with one (or several) branch(es) of length zero.

     'di2multi' deletes all branches smaller than 'tol' and collapses
     the corresponding dichotomies into a multichotomy.

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

     Both functions return an object of class '"phylo"'.

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

     Emmanuel Paradis paradis@isem.univ-montp2.fr

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

     data(bird.families)
     is.binary.tree(bird.families)
     is.binary.tree(multi2di(bird.families))
     all.equal(di2multi(multi2di(bird.families)), bird.families)

