if (FALSE) {
# These examples require external data files not included with the package
# Flexible data input - auto-detects columns
results <- analyze_water_quality_comprehensive("water_stations.csv")
# Specify parameters for custom data
results <- analyze_water_quality_comprehensive(
water_data = my_data,
variable = "nitrate_concentration",
region_boundary = "Ohio",
coord_cols = c("longitude", "latitude"),
thresholds = list(
Normal = c(0, 2),
Elevated = c(2, 5),
High = c(5, 10),
Critical = c(10, Inf)
)
)
# Multi-dataset analysis
results <- analyze_water_quality_comprehensive(
water_data = list(
surface = "surface_water.csv",
groundwater = "groundwater.csv"
),
variable = "total_nitrogen"
)
}
Run the code above in your browser using DataLab