day_ana: Analysis on daily level

Description Usage Arguments

View source: R/day_ana.R

Description

Apply functions on daily level. First, time series re-structured according to day of the year, then selected analytical function applied.

Usage

1
2
day_ana(data, date, start_year, end_year, do_ma = F, window_width = 30,
  method_ana, break_day = 0)

Arguments

data

Vector of input data

date

Time vector

start_year

Selected start year

end_year

Seleced end year

do_ma

Apply moving average filter before analysis (FALSE / TRUE)

window_width

If do_ma is TRUE, then moving average filter with here selected window width applied

method_ana

Selected analytical method('mean', 'median', 'sum', 'sens_slope')

break_day

Define start day (e.g. 274 is 1.October, which is the start of hydrological year in Switzerland).


ERottler/meltimr documentation built on April 29, 2021, 9:56 a.m.