sort_taxa | R Documentation |
Sorting taxa in slot taxonRelations will be reflected in printed list
by functions such as summary()
and indented_list()
.
This is a wrapper for order()
.
sort_taxa(object, ...)
## S3 method for class 'taxlist'
sort_taxa(object, by = "TaxonName", priority, ...)
object |
Object of class taxlist. |
... |
Further arguments passed to |
by |
Character value indicating the column name in slot
taxonRelations of |
priority |
Optional vector with values to be set on top of the list.
Its class have to match the class of the column |
An object of class taxlist with sorted relations.
## Subset with Boraginaceae
tax <- subset(Easplist, TaxonName == "Boraginaceae",
keep_children = TRUE, keep_parents = TRUE
)
indented_list(tax)
## Sorting names alphabetically
tax <- sort_taxa(tax)
indented_list(tax)
## Setting some names on top of the sorting
tax <- sort_taxa(tax, priority = c("Euploca", "Myosotis", "Cordia monoica"))
indented_list(tax)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.