as_treenetdf.data.frame | R Documentation |
treenetdf
Convert a data.frame to a treenetdf
## S3 method for class 'data.frame'
as_treenetdf(
data,
cols = setNames(names(data), names(data)),
df_type = "treenetdf",
subset = names(data),
root,
...
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.