Learn R Programming

kdry (version 0.0.3)

list.append: list.append

Description

Helper function to append an R list.

Usage

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

Value

A list is returned.

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.

See Also

Examples

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

Run the code above in your browser using DataLab