Skip to content

Is it possible to support other date-time classes as indices other than yearmonth/yearquarter? #272

@zemw

Description

@zemw

Currently tsibble only supports native date-time classes and tsibble's internally defined classes (yearweek, yearmonth, yearquarter). The problem is only packages from tidyverts recognises these date-time classes. For example, ggplot2 does not recognise yearmonth natively without specifying scale_x_yearmonth. Furthermore, as yearmonth/yearquarter stores values as integers internally rather than fractions of the year (year plus 0 for January, 1/12 for February, 2/12 for March and so on), it is very hard to convert tsibble to ts or zoo objects and makes it prohibitive to interoperate with other time series packages.

What's better to expect:

  • tsibble works just like tibble without additional caution (works with ggplot2 and other tidyverse operations smoothly) only with enhanced time series features.
  • tsibble works with zoo::yearmon or zoo::yearqtr as time indices. This will make tsibble much more versatile and interoperable.
  • It would be even better if tsibble provides functions to coerce to and from non-tidy time series class (e.g. ts).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions