is_leaf | R Documentation |
Check if each taxon is a leaf. A leaf is a taxon with no subtaxa. subtaxa.
is_leaf(x)
x |
The object to get leaves for, such as a taxonomy object |
Other leaf functions:
leaves()
,
n_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))
is_leaf(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.