Skip to contents

Update a subset of list elements

Usage

update_list_elements(
  source_list,
  update_list,
  list_layer_num = 1,
  verbose = FALSE,
  ...
)

Details

This function is intended to help update a nested source_list, a subset of whose values should be replaced with entries in update_list, leaving any original entries in source_list which were not defined in update_list.

This function may be useful when manipulating lattice or ggplot2 graphical parameters, which are often stored in a nested list structure.