RAC_query {ontophylo} | R Documentation |
Returns a named list aggregating characters under a specified set of terms (e.g., body regions).
RAC_query(char_info, ONT, terms)
char_info |
data.frame. A data.frame with two columns: the first column with character IDs and the second column with ontology IDs. |
ONT |
ontology_index object. |
terms |
character. The set of terms to aggregate characters. |
A named list with character groups.
Sergei Tarasov
data("HAO", "hym_annot")
char_info <- hym_annot[1:2]
# Query for three anatomical regions.
terms <- c("head", "mesosoma", "metasoma")
query <- RAC_query(char_info, HAO, terms)
query