powered by
Helper function to append an R list.
list.append(main_list, append_list, ...)
A list is returned.
list
A list, to which another should be appended.
A list to append to main_list (can be NULL or empty).
main_list
NULL
Further arguments passed to utils::modifyList().
utils::modifyList()
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.
utils::modifyLists
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