extract_levels: Extract tags at specified levels of an ontology

Description Usage Arguments Value

View source: R/extract_levels.R

Description

Given the results of tagging documents with a hierarchical ontology, exports the tags from user-specified levels of the original ontology.

Usage

1
extract_levels(x, n.levels = NULL)

Arguments

x

a character vector containing hierarchical tags separated by a period

n.levels

numeric: the indices of levels that should be extracted

Value

a list of length equal to the length of n.levels where the length of each entry is the length of x


elizagrames/topictagger documentation built on Jan. 1, 2021, 12:16 a.m.