create_dictionary: Creates hierarchical dictionary entries

Description Usage Arguments Value

View source: R/create_dictionary.R

Description

Given an object containing parent and child entries in columns from left to right, creates hierarchical named lists of lists that can be used as a dictionary object

Usage

1
create_dictionary(x, return_dictionary = TRUE)

Arguments

x

a data.frame where columns represent parent and child entries in a hierarchy from left to right

return_dictionary

logical; if TRUE, returns a dictionary object; if FALSE, returns a list of lists

Value

a list of lists or hierarchical dictionary object of parents, children, and descendants


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