build_projections: Constructor for projections objects

View source: R/build_projections.R

build_projectionsR Documentation

Constructor for projections objects

Description

This function builds a valid projections object from some input simulations and dates.

Usage

build_projections(x, dates = NULL, cumulative = FALSE, order_dates = TRUE)

Arguments

x

A matrix of simulated incidence stored as integers, where rows correspond to dates and columns to simulations.

dates

A vector of dates containing one value per row in x; acceptable formats are: integer, Date, and POSIXct; if NULL, the time steps will be counted, with the first dates corresponding to 0.

cumulative

A logical indicating if data represent cumulative incidence; defaults to FALSE.

order_dates

A logical indicating whether the dates should be ordered, from the oldest to the most recent one; TRUE by default.

Author(s)

Thibaut Jombart thibautjombart@gmail.com

See Also

the project function to generate the 'projections' objects.


projections documentation built on March 31, 2023, 7:18 p.m.