assertOptions__tidy_Data: assertOptions__tidy_Data

View source: R/assertOptions__tidy_Data.R

assertOptions__tidy_DataR Documentation

assertOptions__tidy_Data

Description

Checks if inputs to tidy_Data are appropriate.

Usage

assertOptions__tidy_Data(
  tidy,
  DaysOld,
  minimumpercapitaactivecases,
  RiskEval,
  dropNACountry,
  dropNAall
)

Arguments

tidy

If TRUE, then perform tidying according to other parameters. If FALSE, then do nothing. (passed to tidy_Data).

DaysOld

Set any pInf data more than this days old to NA.(passed to tidy_Data).

minimumpercapitaactivecases

Set any pInf data less than this to NA.(passed to tidy_Data).

RiskEval

Set pInf to NA when risk is below RiskEval$minimumRisk (%) using RiskEval$ascertainmentbias and a maximum group size, RiskEval$maximumN (Note: this setting overwrites minimumpercapitaactivecases). (passed to tidy_Data).

dropNACountry

If TRUE, remove rows for countries whose pInf estimates all return NA.(passed to tidy_Data).

dropNAall

If TRUE, remove rows for any region whose pInf estimates all return NA. (passed to tidy_Data).

Value

nothing.

Examples

assertOptions__tidy_Data(TRUE, 30, 0, NULL, TRUE, FALSE)

sjbeckett/subregionalcovid19 documentation built on Feb. 7, 2023, 6 a.m.