View source: R/taxon_relations.R
taxon_relations | R Documentation |
Retrieve the content of slot taxonRelations
from a
taxlist object or replace it by a new data frame.
taxon_relations(taxlist, ...)
## S3 method for class 'taxlist'
taxon_relations(taxlist, ...)
taxon_relations(taxlist, ...) <- value
## S3 replacement method for class 'taxlist'
taxon_relations(taxlist, ...) <- value
## S4 method for signature 'taxlist,numeric'
update_concept(taxlist, ConceptID, ...)
taxlist |
A taxlist object. |
... |
Further arguments passed among methods. |
value |
A |
ConceptID |
Concept IDs to be updated. |
The replacement method taxon_relations<-
should be only used when
constructing taxlist objects from an empty one
(prototype).
New concepts should be first added to a taxlist object
using their respective accepted names.
Synonyms can be further provided using the function add_synonym()
.
Additional named vectors can be provided to be included in slot taxonNames
,
in the cases where those variables already exist, otherwise they will be
ignored.
It is recommended also to provide a concept view as ViewID
(see
taxon_views()
).
For adding a new view, use add_view()
.
An object of class taxlist with added names and concepts.
Miguel Alvarez kamapu78@gmail.com
taxlist
## Subset for the genus Euclea and display of slot 'taxonNames'
Euclea <- subset(x = Easplist, subset = charmatch("Euclea", TaxonName),
slot = "names", keep_children = TRUE)
Euclea
taxon_relations(Euclea)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.