isRegular

0th

Percentile

Checks if a time series is regular

Checks if a time series is regular.

Keywords
chron
Usage
"isDaily"(x) "isMonthly"(x) "isQuarterly"(x)
"isRegular"(x)
"frequency"(x, ...)
Arguments
x
an R object of class 'timeSeries'.
...
arguments to be passed.
Details

What is a regular time series? If a series is a daily, a monthly, or a weekly time series then we speak of a regular series. This can be tested calling the functions isDaily, isMonthly, isQuarterly, or in general isRegular If the series is regular then the frequency of the series can be determined calling the function frequency.

A time series is defined as daily if the series has not more than one date/time stamp per day. A time series is defined as monthly if the series has not more than one date/time stamp per month. A time series is defined as quarterly if the series has not more than one date/time stamp per quarter. Note, amonthly series is also a daily series, a quarterly series is alsona monthly series. With these definitions a regular series is either a monthly or a quarterly series. NOT yet implemented is the case of weekly series.

Value

The is* functions return TRUE or FALSE depending on whether the series fulfills the condition or not.The function frequency returns in general 1, for quarterly series 4, and for monthly series 12.

Aliases
  • isDaily,timeSeries-method
  • isMonthly,timeSeries-method
  • isQuarterly,timeSeries-method
  • isRegular,timeSeries-method
  • frequency,timeSeries-method
Examples
library(timeSeries) ## None
Documentation reproduced from package timeSeries, version 3022.101.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.