buildCaseAnalysisDF: Prep case data into right format

View source: R/library--data_prep--calculated_tools--build_analysis_DF.R

buildCaseAnalysisDFR Documentation

Prep case data into right format

Description

Prep case data into right format

Usage

buildCaseAnalysisDF(
  df,
  site_column = site,
  date_column = date,
  case_column = conf_case,
  pop_column = pop
)

Arguments

df

case dataframe have columns: Date, pop, FirstConfirmed

site_column

name of site column

date_column

name of date column

case_column

name of case column

pop_column

name of pop column

Value

DF with a 7 day rolling sum and a population weighted case column

Examples

data(Case_data, package = "Covid19Wastewater")
data(Pop_data, package = "Covid19Wastewater")
buildCaseAnalysisDF(dplyr::left_join(head(Case_data), Pop_data))

Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.