# \donttest{
# Analyze trends with WWTP for subset of supported range
batch_results <- batch_analysis_years(
years = 2010:2012, # Use smaller range for examples
scale = "huc8",
nutrients = "nitrogen",
include_wwtp = TRUE
)
# Historical analysis without WWTP
historical_results <- batch_analysis_years(
years = 1990:1992, # Use smaller range
scale = "county",
nutrients = c("nitrogen", "phosphorus"),
include_wwtp = FALSE
)
# Mixed analysis: some years with WWTP, some without
mixed_results <- batch_analysis_years(
years = c(2005, 2010, 2015), # 2010,2015 will have WWTP
scale = "huc8",
nutrients = "nitrogen",
include_wwtp = TRUE # Will only apply to 2010,2015
)
# }
Run the code above in your browser using DataLab