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

Description Usage Arguments Value 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

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)

configr documentation built on July 17, 2020, 5:07 p.m.