treenetdfConvert a data.frame to a treenetdf
# S3 method for data.frame
as_treenetdf(
data,
cols = setNames(names(data), names(data)),
df_type = "treenetdf",
subset = names(data),
root,
...
)a tree network description in one of numerous forms (see details).
named character vector specifying the names of columns to be
converted to the standard treenetdf names.
character specifying which type of data frame to convert. Can
be treenetdf or
leafpathdf.
character vector specifying the names of the columns (in order) that should be used to define the hierarchy.
root name.
arguments to pass to methods.