COPtable: COPtable

View source: R/COPtable.R

COPtableR Documentation

COPtable

Description

Create the dataset used by the COPtable with the multiple slicers

Usage

COPtable(df, days, lagDays, measureTable, percentChangeKPI = 5)

Arguments

df

Input data from rollSummaryXDays(). Either cdtHosp7DayRollingData or cdtHosp14DayRollingData

days

The number of days that the time period is over. Should match the days argument for the numDays argument of rollSummaryXDays().

lagDays

The number of days to lag the data for.

measureTable

A formatted data.frame contianing the columns 'measureName', 'Avg_Total', 'measureDisplayName', 'upGood', 'PerCapita'

percentChangeKPI

What percent change should the KPI's be activated for? Default is 5%.


MARC-KC/Covid19MARCData documentation built on April 7, 2022, 11:43 a.m.