update_list function

Update list with input

Update list with input

A wrapper for utils::modifyList() that attempts to coerce non-lists to lists before updating.

update_list(old, new)

Arguments

  • old: a list to be updated
  • new: stuff to update x with

Returns

Returns an updated list.

See Also

utils::modifyList()