n_leaves | R Documentation |
Get the number of leaves per taxon. A leaf is a taxon with no subtaxa.
n_leaves(x)
x |
The object to get leaves for, such as a taxonomy object |
Other leaf functions:
is_leaf()
,
leaves()
x <- taxonomy(c('Carnivora', 'Felidae', 'Panthera', 'Panthera leo',
'Panthera tigris', 'Ursidae', 'Ursus', 'Ursus arctos'),
supertaxa = c(NA, 1, 2, 3, 3, 1, 6, 7))
n_leaves(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.