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.1.0
Depends: R (≥ 3.0.2)
Imports: lifecycle, vctrs, rlang, cli, S7, vecvec (> 0.2.1), tzdb, methods
LinkingTo: cpp11 (≥ 0.5.2), tzdb (≥ 0.5.0)
Suggests: stats, tsibble, testthat, pillar, knitr, rmarkdown
Published: 2026-05-19
DOI: 10.32614/CRAN.package.mixtime (may not be active yet)
Author: Mitchell O'Hara-Wild ORCID iD [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
CRAN checks: mixtime results

Documentation:

Reference manual: mixtime.html , mixtime.pdf
Vignettes: Extending mixtime (source, R code)
Time format strings (source, R code)

Downloads:

Package source: mixtime_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mixtime to link to this page.