expand_pop_mat: Add buffer rows to a pop_mat matrix to enable in-place...

Description Usage Arguments Value

View source: R/expand_pop_mat.R

Description

Each buffer row is made up of NA entries that are inserted at the end of the configuration matrix. This function is designed to operate within an epimodel environment and therefore makes multiple replacements within that environment.

Usage

1
expand_pop_mat(epimodel, buffer_size = NULL)

Arguments

buffer_size

number of buffer rows to insert, defaulting to 30 percent of the number of rows in the current configuration matrix unless otherwise specified.

Value

new population level configuration matrix and index for the last row in the expanded configuration matrix (corresponding to the configuration at tmax)


fintzij/BDAepimodel documentation built on Sept. 20, 2020, 1:44 p.m.