allocate_empty: Allocate Empty Parameters to a List

View source: R/utilities.R

allocate_emptyR Documentation

Allocate Empty Parameters to a List

Description

[Stable] Allocate missing parameters to be empty two dimensional arrays. Used internally by forecast_infections().

Usage

allocate_empty(data, params, n = 0)

Arguments

data

A list of parameters

params

A character vector of parameters to allocate to empty if missing.

n

Numeric, number of samples to assign an empty array

Value

A list of parameters some allocated to be empty


epiforecasts/EpiNow2 documentation built on Dec. 10, 2024, 5:32 p.m.