n>, <span class="va">tree</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> g1 g2 g3 g4 g5 g6 </span>
<span class="r-out co"><span class="r-pr">#&gt;</span>  5  2  5  6  4  3 </span>
<span class="r-in"><span><span class="co"># Relative phylogenetic diversity</span></span></span>
<span class="r-in"><span><span class="fu">RPD</span><span class="op">(</span><span class="va">com</span>, <span class="va">tree</span><span class="op">)</span></span></span>
<span c