merge2lists: Merge two lists

Description Usage Arguments Value Examples

View source: R/internal_functions.r

Description

Merge of 2 lists into one that contains unique or intersect vectors for each list entry with shared names

Usage

1
merge2lists(x, y, fun = "unique")

Arguments

x

(list): input list 1

y

(list): input list 2

fun

(character): Either 'unique' or 'intersect' are accepted

Value

(list) merged list from x and y

Examples

1
2
3
x <- sapply(letters[1:10], function(i) sample(1:10)[1:sample(2:10)[1]], simplify=FALSE )
y <- sapply(letters[5:15], function(i) sample(1:10)[1:sample(2:10)[1]], simplify=FALSE )
merge2lists(x,y)

ccbiolab/svpluscnv documentation built on Sept. 9, 2020, 4:52 a.m.