Merge two list

merge_list(x, y)

Arguments

x

one list

y

another list. Elements having same names in x will be override by those in y.

Value

a merged list

Examples

merge_list(list(1, A = 2, B = 3, 4), list(A = 22, 5, 1))
#> $A #> [1] 22 #> #> [[2]] #> [1] 5 #> #> [[3]] #> [1] 1 #> #> [[4]] #> [1] 1 #> #> $B #> [1] 3 #> #> [[6]] #> [1] 4 #>