intersectElements {SuperExactTest}R Documentation

Find Intersection Membership

Description

Find intersections and assign element to intersection combinations.

Usage

intersectElements(x, mutual.exclusive=TRUE)

Arguments

x

list; a collection of sets.

mutual.exclusive

logical; see Details.

Details

See example below for the use of mutual.exclusive.

Value

A data.frame with two columns:

Entry

set elements.

barcode

intersection combination that each entry belongs to.

Author(s)

Minghui Wang <minghui.wang@mssm.edu>

Examples

set.seed(123)
sets=list(S1=sample(letters,10), S2=sample(letters,5), S3=sample(letters,7))
intersectElements(sets,mutual.exclusive=TRUE)
intersectElements(sets,mutual.exclusive=FALSE)

[Package SuperExactTest version 1.1.0 Index]