config.list.merge: Merge list file (From config package), list.right will...

Description Usage Arguments Value See Also Examples

View source: R/merge.R

Description

Merge list file (From config package), list.right will overwrite the element also existed in list.left

Usage

1
config.list.merge(list.left = list(), list.right = list())

Arguments

list.left

One list be merged left

list.right

One list be merged right

Value

A list

See Also

merge call in this function

Examples

1
2
3
4
5
6
7
config.json <- system.file('extdata', 'config.json', package='configr')
list.left <- list()
list.right <- eval.config(file = config.json)
config.list.merge(list.left, list.right)
list.left <- list(a=c(123,456))
list.right <- list(a=c(4,5,6)) 
config.list.merge(list.left, list.right)

Miachol/configr documentation built on Nov. 16, 2018, 5:23 p.m.