resync: shift the death records in dfr 'shift' days into the past

Description Usage Arguments Examples

View source: R/syncapp.R

Description

shift the death records in dfr shift days into the past

Usage

1
resync(dfr, shift = 26)

Arguments

dfr

a data.frame with date, deaths, confirmed

shift

numeric(1) coerced to integer

Examples

1
2
ind = data.frame(date=1:5, confirmed=letters[1:5], deaths=LETTERS[1:5])
resync(ind, 2)

vjcitn/sars2app documentation built on Jan. 3, 2022, 12:19 a.m.