Learn R Programming

Covid19Wastewater (version 1.0.1)

countFlags: Create counts of flag data

Description

Takes a data frame with grouping columns and numeric flag DF where 1 means a flag

Usage

countFlags(DF, group = c("Site", "window", "quant"))

Value

DF with the number of flags of each type with in groups

Arguments

DF

data frame with grouping columns and numeric flag columns

group

vector specifying what columns should be used for grouping

Examples

Run this code
data(Example_data, package = "Covid19Wastewater")
countFlags(Example_data, group = c("site"))

Run the code above in your browser using DataLab