extractInfo {venn}R Documentation

Extract information about a list object.

Description

Extracts useful information such as the counts or the actual intersections between several sets.

Usage

extractInfo(
  x, what = c("counts", "intersections", "both"), use.names = FALSE
)

Arguments

x

A list object containing set elements

what

What to extract

use.names

Logical, use the set names to indicate intersections

Value

A dataframe, when extracting the counts or a list if extracting intersections.

Examples


set.seed(12345)
x <- list(First = 1:20, Second = 10:30, Third = sample(25:50, 15))

extractInfo(x) # counts by default

extractInfo(x, what = "intersections")

extractInfo(x, what = "both")


[Package venn version 1.12 Index]