dot-unionList: Update list with another list

.unionListR Documentation

Update list with another list

Description

This function performs a union of two lists and updates the elements of the first one if are found in the other one.

Usage

.unionList(list1, list2, combine = FALSE)

Arguments

list1

a list to be updated

list2

a list to update with

combine

a logical indicating whether the elements of the second list should replace (FALSE, default) or append to (TRUE) the first one.

Details

Both elements have to be lists. If some elements are not named, they are preserved but the order might be lost.

Value

an updated list

Examples

list1=list(a=1,b=2)
list2=list(a=1,b=1,c=3)
.unionList(list1,list2)


pepkit/BiocProject documentation built on July 28, 2023, 2:49 p.m.