create_list: Create hierarchy as list of lists

Description Usage Arguments Details

View source: R/convert.R

Description

To work with networkD3 we need the hierarchy as a list of lists following JSON structure. This function takes the hierachy table and converts it to the required list of lists format.

Usage

1
create_list(hierarchy, level = 1)

Arguments

hierarchy

Data frame containing hierarchy data

level

The level of interest

Details

Since we are working with sel-referential tables, the depth of each concept in the hierarchy needs to be identified first.

It accepts a level in case a lower level structure is required for the visualization


FvD/conceptr documentation built on May 6, 2019, 5:07 p.m.