ts_to_incid: Convert time-series to incidence object

View source: R/utils.R

ts_to_incidR Documentation

Convert time-series to incidence object

Description

incidence package accepts a linelist like object (list of dates) and converts them into an incid object, which is needed by projections package. To use projections package with a time-series we convert time-series object into incid object.

Usage

ts_to_incid(ts, date_col, case_col)

Author(s)

Sangeeta Bhatia


mrc-ide/rincewind documentation built on Aug. 5, 2022, 3:20 a.m.