lfus: List fusion by name

Description Usage Arguments Value Examples

View source: R/arrays.R

Description

#fuses two lists by names, creating a new list where each sub-list contain the elements of the original lists in the same ordered and labels as per labeling.

Usage

1
lfus(list1, list2, labeling, follow = list1)

Arguments

list1

list to be fused by name

list2

list to be fused by name

labeling

must be a character vector of length 2

follow

specify which order should the resulting list have. If list2, the order will be the same of the second input list (default: list1)

Value

a list containing all the elements of list1 and list2

Examples

1
2
3
la<-list(type="sunflower",available=F,quantity=1)
lb<-list(available=T,type="rosemary",quantity=3)
lfus(la,lb,c("A","B"))

Davz33/lazykitten documentation built on Jan. 28, 2022, 1:56 a.m.