Description Usage Arguments Value Examples
View source: R/set_threshold.R
Set tolerable extreme values (maximum or minimum). Records greater or equal than ('>=') or lesser or equal than ('<=') 'threshold' argument are set to NA_real_
.
1 | set_threshold(x, threshold, case = ">=")
|
x |
numeric vector or data frame with a numeric series in the second column. |
threshold |
numeric value with threshold. |
case |
string with either '>=' (greater or equal than) or '<=' (lesser or equal than) symbol. |
Numeric vector or data frame with values greater (or lesser) or equal than 'threshold' set as NA_real_
.
1 2 3 4 5 6 7 8 | # Relative path to raw data
full_path <- system.file('extdata', package = "hydroToolkit")
# Read IANIGLA file
cuevas <- read_IANIGLA(file = 'Cuevas.csv', path = full_path)
# Set threshold from air temperature series
tair_thres <- set_threshold(x = cuevas, threshold = 40)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.