| detect_venn_datatype | R Documentation |
Examines the structure of data and determines which of the four
supported formats it conforms to:
"long" — a data frame with one row per element-set pair.
"wide" — a data frame with logical/0-1 columns per set.
"list" — a named list of element vectors per set.
"venn" — a pre-computed VennPlotData object.
detect_venn_datatype(data, group_by = NULL, id_by = NULL)
data |
A data frame, a named list, or a |
group_by |
A character string specifying the column name(s) identifying
the set membership. A single non- |
id_by |
A character string specifying the column name that identifies
individual elements. Required when |
A character string indicating the detected data format:
"long", "wide", "list", or "venn". Stops with
an error if the data does not match any recognised type.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.