as_treenetdf.data.frame {networkD3} | R Documentation |
Convert a data.frame to a treenetdf
Description
Convert a data.frame to a treenetdf
Usage
## 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 |
df_type |
character specifying which type of data frame to convert. Can
be |
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. |
[Package networkD3 version 0.4.1 Index]