Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


MSPRT (version 2.1)

compmerge.list: Merging two lists componentwise

Description

Suppose two lists have same number of components. This function creates a new list by merging (or concatenating) them componentwise.

Usage

compmerge.list(l1, l2)

Arguments

l1

a list

l2

a list

Value

Returns the merged list.

Details

l1 and l2 need to have same number of components.

Examples

Run this code
# NOT RUN {
list1 = list("a"=1, "b"=3, "c"=5)
list2 = list("a"=2, "b"=4, "c"=6)

compmerge.list(list1, list2)
# }

Run the code above in your browser using DataLab