Learn R Programming

ggvenn (version 0.1.10)

data_frame_to_list: Utility function for data type conversion.

Description

Utility function for data type conversion.

Usage

data_frame_to_list(x)

Value

A list of sets.

Arguments

x

A data.frame with logical columns representing sets.

Examples

Run this code
d <- tibble(name = 1:6,
            A = c(rep(TRUE, 5), FALSE),
            B = rep(c(FALSE, TRUE), each = 3))
print(d)
data_frame_to_list(d)

Run the code above in your browser using DataLab