powered by
Takes a data frame with grouping columns and numeric flag DF where 1 means a flag
countFlags(DF, group = c("Site", "window", "quant"))
DF with the number of flags of each type with in groups
data frame with grouping columns and numeric flag columns
vector specifying what columns should be used for grouping
data(Example_data, package = "Covid19Wastewater") countFlags(Example_data, group = c("site"))
Run the code above in your browser using DataLab