View source: R/FilterHolidays.R
FilterHolidays | R Documentation |
Filters Holidays out of daily data
FilterHolidays(Time, Datavector=NULL,HolidaysTime = TSAT::GermanHolidays$Time,
PlotIt=FALSE)
Time |
[1:n] vector of time, |
Datavector |
Optional, [1:n] vector of values or a Key in case of a data frame. Default is |
HolidaysTime |
[1:m] vector of time of holidays, as.Date or POSIXct objects are accepted. Default are german holidays, see GermanHolidays |
PlotIt |
Optional, TRUE: Evaluates output of function versus input by plots, works only if Datavector given. Default is FALSE |
deletes holidays out of input
List with
FilteredTime |
[1:m] vector with time objects of the m=n-k dates, which are not holidays |
FilteredData |
[1:m] vector with data corresponding to the m=n-k dates, which are not holidays |
HolidaysTimes |
[1:k] vector with time objects of the k holidays |
HolidaysData |
[1:k] vector with data corresponding to the k holidays |
where k,m<=n and n=m+k
Michael Thrun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.