list_merge: Merge lists accounting for empty lists

View source: R/utils.R

list_mergeR Documentation

Merge lists accounting for empty lists

Description

This function is a wrapper for list.merge. The difference is that this function first screens out any empty lists, which cause errors for list.merge. If there is only one non-empty list, this is returned. Otherwise, list.merge is used to merge lists in an iterative process. For large lists, this approach will be slower than calling list.merge directly if there are no empty lists. Both list.merge and list_merge() require named lists.

Usage

list_merge(...)

Arguments

...

named lists

Author(s)

Edward Lavender


edwardlavender/Tools4ETS documentation built on Nov. 29, 2022, 7:41 a.m.