update_list: Update List 'x' Using the Elements of List 'new.x'.

View source: R/net.mod.updater.R

update_listR Documentation

Update List x Using the Elements of List new.x.

Description

Update List x Using the Elements of List new.x.

Usage

update_list(x, new.x)

Arguments

x

A list.

new.x

A list.

Details

This function updates list x by name. If x and new.x elements are not named, the function will not work properly. If a function is provided to replace an element that was originally not a function, this function will be applied to the original value.

Value

The full x list with the modifications added by new.x.


EpiModel documentation built on July 9, 2023, 5:21 p.m.