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")

Example output

  Subset Detail
1      A     57
2      A     55
3      A     59
4      A     24
5      A     34
6      A     63
7      A     60
Warning message:
`filter_()` is deprecated as of dplyr 0.7.0.
Please use `filter()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated. 

VennDetail documentation built on Nov. 8, 2020, 8:25 p.m.