Skip to contents

Subsample wastewater sites

Usage

subsample_sites(ww_data, prop_sites = 0.2, sampled_sites = NULL)

Arguments

ww_data

Site-level wastewater data, extracted and trnsformed from the raw NWSS data to contain only the relevant columns. This will be for all time points

prop_sites

Proportion of all sites that we want to keep in the input data. default is 0.2

sampled_sites

The list of sites that you want to keep, so that we can compare the exact same subsample if desired. Default is NULL, then random sampling is done according to the proportion

Value

a data frame structured the same way as the ww_data but with only prop_sites included. These sites are chosen randomly