data.frame.hierarchical: Hierarchical Data Frames

Description Usage Arguments

View source: R/hierarchical_df.R

Description

Convert a flat data frame that contains a hierarchy into nested lists that are more appropriate for hierarchies

Usage

1
2
  data.frame.hierarchical(x, hierarchy, leaves.name,
    leaves)

Arguments

x

- a flat data frame

hierarchy

- a vector of integers representing which columns form the hierarchy

leaves.name

- what should the names of the leaf nodes be

leaves

- a vector of integers representing which columns form the leaves


jeffwong/hierarchical_df documentation built on May 19, 2019, 4:02 a.m.