Skip to contents

Returns the full ontology as a recursive nested list.

Usage

fetch_ontology_tree(depth = 4L)

Arguments

depth

Tree depth to return (1–10, default 4).

Value

A recursive nested list: list(tcm_id, name, name_cn, level, children = list(...)).

Examples

if (FALSE) { # \dontrun{
tree <- fetch_ontology_tree(depth = 2)
} # }