front_zero_pad: Pad reported data with zeros in front

Description Usage Arguments Value

View source: R/data_processing.R

Description

Add zeros in front of reported data avoid infections from before first reported date all being placed on first reported date.

Usage

1
front_zero_pad(reported, size)

Arguments

reported

An integer vector of reported cases

size

An integer size of zero-padding

Value

An integer vector of cases with size 0's in front


incidental documentation built on Sept. 16, 2020, 5:07 p.m.