list.append {kdry}R Documentation

list.append

Description

Helper function to append an R list.

Usage

list.append(main_list, append_list, ...)

Arguments

main_list

A list, to which another should be appended.

append_list

A list to append to main_list (can be NULL or empty).

...

Further arguments passed to utils::modifyList().

Details

This function is a save wrapper around utils::modifyLists to combine lists as it checks for the input types and only appends the new list if its length is greater than 0.

Value

A list is returned.

See Also

utils::modifyList()

Examples

l1 <- list("a" = 1, "b" = 2)
l2 <- list("c" = 3, "d" = 4)
list.append(l1, l2)

[Package kdry version 0.0.2 Index]