Learn R Programming

covid19.analytics (version 2.1.3.3)

estimateRRs: estimate rolling rates for a given geographical location for an specific TS data

Description

estimate rolling rates for a given geographical location for an specific TS data

Usage

estimateRRs(
  data = NULL,
  geo.loc = NULL,
  period = NULL,
  graphics.ON = TRUE,
  splitG = TRUE
)

Arguments

data

time series dataset to consider

geo.loc

country/region to analyze

period

length of window

graphics.ON

boolean flag to activate/deactivate graphical output

splitG

boolean flag for having the graphical output separated or not

Examples

Run this code
# the following examples take longer than 10 sec, and triggers CRAN checks
if (FALSE) {
estimateRRs(covid19.data("TS-all"), geo.loc='Peru', period=7)
estimateRRs(covid19.data("TS-all"),
	geo.loc=c('Peru','Argentina','Uruguay','US','Spain','Japan'), period=7)
}

Run the code above in your browser using DataLab