Function to return a column of background data
set_background(df, sample_date, start, end, return_all = FALSE)
| df | dataframe of groundwater data in tidy format |
|---|---|
| sample_date | the column for the sampling dates |
| start | the start date for background |
| end | the end date for background |
| return_all | logical condition to return all values, or only background |