Nothing
#' list parentless nodes in ontology_index instance
#' @param x an ontology_index instance
#' @return a report (produced by cat()) of root ids and associated names
#' @examples
#' onto_roots
#' @export
onto_roots <- function(x) {
roots = x$id[ sapply(x$parents, length) == 0]
show_roots <- roots[order(sapply(x$children[roots], length),
decreasing = TRUE)]
cat(paste0(collapse = "", "\t", show_roots, " - ", x$name[show_roots],
"\n"), sep = "")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.