taxlist (version 0.2.4)

clean: Delete orphaned records

Description

Manipulation of slots may generate orphaned entries in taxlist objects. The function clean deletes such entries and restores the consistency of the objects.

Usage

clean(object, ...)

# S4 method for taxlist clean(object, times = 2, ...)

Value

A clean taxlist object.

Arguments

object

A taxlist object.

...

Further arguments passed from or to other methods.

times

An integer indicating how many times the cleaning should be repeated.

Author

Miguel Alvarez.

Details

Cleaning of objects will follow the deletion of orphaned names, orphaned taxon trait entries, and orphaned parent entries.

Examples

Run this code
## Direct manipulation of slot taxonRelations generates an invalid object
Easplist@taxonRelations <- Easplist@taxonRelations[1:5, ]

## Now apply cleaning
Easplist <- clean(Easplist)
summary(Easplist)

Run the code above in your browser using DataLab