Learn R Programming

taRifx (version 1.0.6.2)

merge.list: Method to merge two lists Matches names of each list element and combines any sub-elements

Description

Method to merge two lists Matches names of each list element and combines any sub-elements

Usage

# S3 method for list
merge (x, y, ...)

Arguments

x

First list

y

Second list

Other arguments

Value

A list

Examples

Run this code
# NOT RUN {
x <- list( A=list(p=runif(5)), B=list(q=runif(5)) )
y <- list( A=list(r=runif(5)), C=list(s=runif(5)) )
merge.list(x,y)
# }

Run the code above in your browser using DataLab