as_treenetdf.data.frame: Convert a data.frame to a 'treenetdf'

Description Usage Arguments

Description

Convert a data.frame to a treenetdf

Usage

1
2
3
## S3 method for class 'data.frame'
as_treenetdf(data, cols = setNames(names(data),
  names(data)), df_type = "treenetdf", subset = names(data), root, ...)

Arguments

data

a tree network description in one of numerous forms (see details).

cols

named character vector specifying the names of columns to be converted to the standard treenetdf names.

df_type

character specifying which type of data frame to convert. Can be treenetdf or leafpathdf.

subset

character vector specifying the names of the columns (in order) that should be used to define the hierarchy.

root

root name.

...

arguments to pass to methods.


christophergandrud/networkD3 documentation built on May 13, 2019, 7:02 p.m.