Learn R Programming

manureshed (version 0.1.3)

wwtp_classify_sources: Classify WWTP Sources by Load Size

Description

Classify WWTP facilities into size categories based on annual nutrient loads

Usage

wwtp_classify_sources(wwtp_data, nutrient)

Value

Data frame with source_class column added

Arguments

wwtp_data

Data frame. WWTP data with load information

nutrient

Character. "nitrogen" or "phosphorus"

Examples

Run this code
# \donttest{
# Load WWTP data first
wwtp_data <- load_builtin_wwtp("nitrogen", 2016)

# Classify nitrogen sources
classified_data <- wwtp_classify_sources(wwtp_data, "nitrogen")
table(classified_data$source_class)
# }

Run the code above in your browser using DataLab