update_list: Update list 'x' using the elements of list 'new.x'.

Description Usage Arguments Details Value

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

Description

Update list x using the elements of list new.x.

Usage

1
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 Nov. 10, 2021, 1:09 a.m.