merge.list: Method to merge two lists Matches names of each list element...

Description Usage Arguments Value Examples

View source: R/Rfunctions.R

Description

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

Usage

1
2
  ## S3 method for class 'list'
 merge(x, y, ...)

Arguments

x

First list

y

Second list

...

Other arguments

Value

A list

Examples

1
2
3
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)

Example output

$A
$A$p
[1] 0.04138039 0.04135659 0.39726837 0.15285688 0.68242429

$A$r
[1] 0.5589987 0.4382303 0.5883471 0.7709750 0.5323656


$B
$B$q
[1] 0.06155227 0.85381326 0.18336819 0.68305520 0.55805722


$C
$C$s
[1] 0.5454220 0.5717162 0.4347464 0.3268611 0.8200225

taRifx documentation built on April 14, 2020, 6:27 p.m.

Related to merge.list in taRifx...