Skip to contents

This function filters, transforms, and processes well water level data from a combined dataset. It prepares the data for mapping and analysis by calculating changes in well water levels, joining with basin information, and summarizing the data on a monthly basis.

Usage

CleanWells(x, y)

Arguments

x

A data frame containing well water level data. Defaults to `all_combined_data`.

y

A spatial data frame containing basin information. Defaults to `ActiveDivides`.

Value

A data frame with monthly averages of the change in well water levels for each basin. The output includes:

Divide

The divide ID.

date

The first day of the month for which the average is calculated.

mean_change_mm

The mean change in well water level in millimeters.