join_lists: Join two lists by their names

View source: R/join-lists.R

join_listsR Documentation

Join two lists by their names

Description

Overwrites elements of list.1 with those from list.2 that share the same name. Then merges all residual named elements of list.2 into list.1. Unnamed elements of list.2 will be dropped.

Usage

join_lists(lst.1 = list(), lst.2 = list(), drop.unnamed = TRUE)

Arguments

lst.1

A named list.

lst.2

A named list.

drop.unnamed

Logical. If set to TRUE unnamed elements of the return list will be dropped.

Value

A merged list.


kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.