mixtime: Mixed Temporal Vectors and Operations
Flexible time classes for time series analysis and forecasting with
mixed temporal granularities. Supports linear and cyclical time
representations in discrete and continuous forms, with timezone support,
across multiple calendar systems including Gregorian and ISO week date
calendars. Time points are stored numerically relative to a chronon; an
atomic time granule defined by time units of a calendar. Calendrical
arithmetic enables conversion between time granules (e.g. days to months)
and calendar systems. Multi-unit arithmetic allows for temporal analysis
with other granules of common calendars (e.g. fortnights are 2-week units).
Time vectors of different granularities (e.g. monthly and quarterly) can be
combined in a single vector, making 'mixtime' ideal for data that changes
observation frequency over time or requires temporal reconciliation across
scales. The package is extensible, allowing users to define custom calendars
that build upon civil and astronomical time systems.
| Version: |
0.3.0 |
| Depends: |
R (≥ 3.0.2) |
| Imports: |
lifecycle, vctrs, rlang, cli, S7, vecvec (≥ 1.2.0), tzdb, methods |
| LinkingTo: |
cpp11 (≥ 0.5.2), tzdb (≥ 0.5.0) |
| Suggests: |
stats, tsibble, testthat, pillar, knitr, rmarkdown, ggplot2, ggtime |
| Published: |
2026-08-24 |
| DOI: |
10.32614/CRAN.package.mixtime |
| Author: |
Mitchell O'Hara-Wild
[aut, cre] |
| Maintainer: |
Mitchell O'Hara-Wild <mail at mitchelloharawild.com> |
| BugReports: |
https://github.com/mitchelloharawild/mixtime/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://pkg.mitchelloharawild.com/mixtime/,
https://github.com/mitchelloharawild/mixtime |
| NeedsCompilation: |
yes |
| Language: |
en-GB |
| Materials: |
README, NEWS |
| In views: |
TimeSeries |
| CRAN checks: |
mixtime results |
Documentation:
Downloads:
Reverse dependencies:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=mixtime
to link to this page.