powered by
Method to merge two lists Matches names of each list element and combines any sub-elements
# S3 method for list merge (x, y, ...)
First list
Second list
Other arguments
A list
# 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