powered by
Suppose two lists have same number of components. This function creates a new list by merging (or concatenating) them componentwise.
compmerge.list(l1, l2)
a list
Returns the merged list.
l1 and l2 need to have same number of components.
l1
l2
# 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