getSet: getSet function provides a way to extract subsets

Description Usage Arguments Value Author(s) Examples

Description

getSet function provides a way to extract subsets from venndetail object

Usage

1
2
3
4
getSet(object, subset = NULL, min = 0, wide = FALSE)

## S4 method for signature 'Venn'
getSet(object, subset = NULL, min = 0, wide = FALSE)

Arguments

object

Venn object

subset

Character vector giving the subset names

min

The minimum number of input groups that a subset must belong to e.g. min = 2 will only report those subsets with elements shared by 2 or more input groups.

wide

Boolean indicating return wide format (default: FALSE).

Value

Specific subset information

Author(s)

Kai Guo

Examples

1
2
3
4
5
A <- sample(1:100, 40, replace = FALSE)
B <- sample(1:100, 60, replace = FALSE)
C <- sample(1:100, 40, replace = FALSE)
res <- venndetail(list(A = A, B = B, C = C))
getSet(res, "A")

guokai8/VennDetail documentation built on July 28, 2021, 1:02 p.m.