remove_terms_with_less_than_n_occurrences | R Documentation |
Remove terms with less than certain number of occurrences
remove_terms_with_less_than_n_occurrences(
ontology,
term_sets,
n,
terms = unique(unlist(term_sets))
)
ontology |
|
term_sets |
List of character vectors of ontological term IDs |
n |
Integer |
terms |
Character vector of ontological terms |
Character vector
n_most_frequent_terms
library(ontologyIndex)
data(hpo)
remove_terms_with_less_than_n_occurrences(hpo,
term_sets=list("HP:0001873", "HP:0001902"), n=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.