listmerge: Merges two lists.

Description Usage Arguments Value

View source: R/utility_functions.R

Description

Merges two lists.

Usage

1
listmerge(x, y, type = c("merge", "template"))

Arguments

x

A list of default arguments.

y

A list of supplied arguments

type

If merge, the list will be merge with y having priority; if template, named the elements of y not in x will be discarded after merging.

Value

A merged list where conflicts are solved in favour of y. Does not preserve ordering.


kdensity documentation built on Oct. 23, 2020, 8:32 p.m.