Population Data Vignette

knitr::opts_chunk$set(Warning = FALSE, message = FALSE, echo = FALSE)

Population data

This vignette explains and gives examples for the population Data for Wisconsin's Wastewater treatment plants(WWTP).

library(Covid19Wastewater)
library(dplyr)

The first column three columns contain location information; the region the site is in(as defined by the DHS), the county the site is in, and the WWTP site name. Next is the lab submitter, which is the lab that processed the results which can be either the State Lab of Hygine (SLH) or University of Wisconsin Milwaukee (UMW). Finally is the population of the site.Madison only data has two entries for each site one with the total Madison population and the other with the specific population for that WWTP.

data(Pop_data, package = "Covid19Wastewater")
Pop_data %>%
  head()%>%
  knitr::kable()

Sometimes we split sites by population size into 3 groups:

population_split_by_size <- Pop_data %>% mutate(popgroup = case_when(pop >= 100000 ~ "Large",
                                                         pop >= 10000  ~ "Medium",
                                                         .default = "Small"))
population_split_by_size %>%
  head()%>%
  knitr::kable()

To combine cities that have multiple WWTPs, you can use code similar to this:

Madison_data <- Pop_data %>% filter(grepl("Madison|MMSD", site))
Madison_data %>%
  head()%>%
  knitr::kable()


Try the Covid19Wastewater package in your browser

Any scripts or data that you put into this service are public.

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