Description Usage Arguments Details
View source: R/as_classification.R
Convert a data.frame to a classification object
1 | as_classification(x, compute_parent = FALSE, order = 1:4)
|
x |
the data.frame to convert. See, details for the format of the data.frame |
compute_parent |
compute the parent column of the input |
order |
selection of columns from x. |
The data.frame should contain the following columns:
the id of the category (cast to character)
the label of the category (cast to character)
the level of the classification in which the category belongs (should be integer)
the id of the parent category (cast to character). Can be
omitted when compute_parent = FALSE
. Should contain missing values
for categories in level 1 of the classification.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.