Threshold_Build: Threshold_Build

Description Usage Arguments Value

View source: R/main.R

Description

Threshold_Building takes into a list of stations, year_from and year_to representing the beginning and the end of the reference period, and the two ratio numbers hi and low representing the percentile(high and low). bday_calculation function will be needed to calculate the threshold.

Usage

1
2
3
4
5
6
7
8
Threshold_Build(
  stations,
  yfrom = 1981,
  yto = 2010,
  hi = 0.95,
  low = 0.05,
  write_csv = FALSE
)

Arguments

stations

a vector of characters indicating the list of station we want to calculate the threshold on;

yfrom

a numeric indicating the year threshold calculation starts, defaulted to 1981;

yto

a numeric indicating the year threshold calculation ends, defaulted to 2010;

hi

a numeric indicating the upper confident threshold, defaulted to 0.95;

low

a numeric indicating the lower confident threshold, defaulted to 0.05

write_csv

a boolean value indicating whether ot not the output will be written to csv, defaulted to FALSE;

Value

A dtaaframe of the format: || station ||UpperThreshold ||LowerThreshold ||


sarahforte/CESIfun documentation built on Dec. 22, 2021, 10:16 p.m.