listmerge: Merges two lists.

View source: R/utility.R

listmergeR Documentation

Merges two lists.

Description

Merges two lists.

Usage

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 favor of y. Does not preserve ordering.


JonasMoss/univariateML documentation built on Feb. 6, 2024, 2:21 p.m.