merge2lists: Given two lists with (or without common names) returns a...

Description Usage Arguments Value Examples

View source: R/internal_functions.r

Description

Given two lists with (or without common names) returns a combined list; if common names their values merged and returned as unique

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)

gonzolgarcia/svcnvplus documentation built on March 4, 2020, 6:02 p.m.