R: Named Merge

nerge {caroline} | R Documentation

## Named Merge

### Description

This function is a wrapper for merge that supports merging multiple vectors and or dataframes

### Usage

    nerge(l, ...)

### Arguments

`l` | A named list of named vectors (and/or dataframes)
`...` | Other parameters passed on to each sub-merge

### See Also

merge

### Examples

    df <- data.frame(a=c(6,7,8), b=c(9,8,7))
    rownames(df) <- c('a','d','c')

    l <- list(x=nv(c(1,2),c('a','b')),y=nv(c(2,3),c('b','d')),z=nv(c(4,1),c('c','d') ), w=df)
    nerge(l, all=TRUE)

    l2 <- list(a=nv(c(1.23, 1.423, 2.343), c('z','y','x')),b=nv(c(6.34,7.34, 12.545),c('z','w','y')))
    nerge(l2, all=TRUE)

[Package caroline version 0.7.6 Index]