View source: R/base_list_update.R
| list.update | R Documentation | 
Helper function to update items in an R list.
list.update(main_list, new_list, ...)
| main_list | A list, which items should be updated. | 
| new_list | A list with new values of items from  | 
| ... | Further arguments passed to  | 
This function is a save wrapper around utils::modifyLists to
update items in R lists as it checks for the input types and only accepts
named lists.
A list is returned.
utils::modifyList()
l1 <- list("a" = 1, "b" = 2)
l2 <- list("a" = 3, "b" = 4)
list.update(l1, l2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.