clean | R Documentation |
Manipulation of slots may generate orphaned entries in
taxlist objects.
The function clean
deletes such entries and restores the consistency
of the objects.
clean(object, ...)
## S4 method for signature 'taxlist'
clean(object, times = 2, ...)
object |
A taxlist object. |
... |
Further arguments passed from or to other methods. |
times |
An integer indicating how many times the cleaning should be repeated. |
Cleaning of objects will follow the deletion of orphaned names, orphaned taxon trait entries, and orphaned parent entries.
A clean taxlist object.
Miguel Alvarez.
## Direct manipulation of slot taxonRelations generates an invalid object
Easplist@taxonRelations <- Easplist@taxonRelations[1:5, ]
## Now apply cleaning
Easplist <- clean(Easplist)
summary(Easplist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.