Skip to contents

Replace extreme water values by chosen values.

Usage

remove_out(
  results_dt,
  min = NULL,
  max = NULL,
  max_vu,
  min_vu,
  replace_na_method
)

Arguments

results_dt

A dplyr::tibble() containing water values. Output watervalues from Grid_Matrix().

min

Double. Minimal accepted water value.

max

Double. Maximal accepted water value.

max_vu

Double. Value to use for water values higher than max.

min_vu

Double. Value to use for water values lower than min.

replace_na_method

Character. Method to replace extreme values, either "constant values" to replace by max_vu and min_vu or "extreme values" to replace by the extreme values of the current week.

Value

A dplyr::tibble() with same format than results_dt.