countFlags: Create counts of flag data

View source: R/library--analysis_tools--DHS_methods--create_flag_count.R

countFlagsR Documentation

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"))

Arguments

DF

data frame with grouping columns and numeric flag columns

group

vector specifying what columns should be used for grouping

Value

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

Examples

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

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