| detect_upset_datatype | R Documentation |
Inspects the structure of data and returns a classifier string that
downstream functions use to select the parsing strategy. When data
is an UpsetPlotData object (from prepare_upset_data())
it short-circuits to "upset" immediately.
detect_upset_datatype(data, group_by = NULL, id_by = NULL)
data |
A data frame or a named list of element vectors. |
group_by |
A character string specifying the column name for the set-definition groups.
Only meaningful when |
id_by |
A character string specifying the column name for instance identifiers.
Required when |
A character string, one of "long", "wide", "list",
or "upset".
"long"Long-format data — each row records one (set, element) pair.
"wide"Wide-format data — each row is an element and each set has its own logical/0-1 column.
"list"A named list of element vectors.
"upset"Already an UpsetPlotData object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.