leaves_apply function

Apply function to leaves of each taxon