Description Usage Arguments Value
View source: R/DataFrame_Functions.R
Function to convert data.tree object back to a data.frame, with all attrs. By using ToDataFrameTable, you would get only the leaf-level information. ToDataFrameTree gives aggregate values calculated at the different levels of the hierarchy as well, which is needed to compute values for metrics at each of the levels.
1 | tree_to_df(node, ..., attrs = NULL, attributes_only = TRUE)
|
node |
a data.tree Node object |
attrs |
character, optional. Attributes to be included in the output. If not provided, will default to include all attributes present in the data.tree. |
attributes_only |
logical, optional. If |
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.