Checks if a time series is regular
Checks if a time series is regular.
# S4 method for timeSeries isDaily(x) # S4 method for timeSeries isMonthly(x) # S4 method for timeSeries isQuarterly(x) # S4 method for timeSeries isRegular(x) # S4 method for timeSeries frequency(x, ...)
What is a regular time series? If a time series is daily, monthly, or
weekly, then we speak of a regular series. This can be tested calling
isRegular. If the series is regular then its
frequency can be determined by calling
Here are the definitions of daily, monthly, and quarterly time series:
if the series has no more than one date/time stamp per day.
if the series has no more than one date/time stamp per month.
if the series has no more than one date/time stamp per quarter.
A regular series is either a monthly or a quarterly series.
Note that with the above definitions a monthly series is also a daily series, a quarterly series is also a monthly series. On the other hand, a daily series is not regular!
NOT yet implemented is the case of weekly series.
is* functions return
on whether the series fulfills the condition or not.
frequency returns in general 1, for quarterly series 4,
and for monthly series 12.