RAC_query {ontophylo} | R Documentation |
Retrieve all characters under a given set of terms
Description
Returns a named list aggregating characters under a specified set of terms (e.g., body regions).
Usage
RAC_query(char_info, ONT, terms)
Arguments
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. |
Value
A named list with character groups.
Author(s)
Sergei Tarasov
Examples
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
[Package ontophylo version 1.1.3 Index]