Package: mixtime 0.3.0.9000

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.

Authors:Mitchell O'Hara-Wild [aut, cre], Cynthia Huang [ctb], Rob Hyndman [ctb]

mixtime_0.3.0.9000.tar.gz
mixtime_0.3.0.9000.zip(r-4.7-x86_64)mixtime_0.3.0.9000.zip(r-4.7-arm64)mixtime_0.3.0.9000.zip(r-4.6-x86_64)mixtime_0.3.0.9000.zip(r-4.6-arm64)mixtime_0.3.0.9000.zip(r-4.5-x86_64)
mixtime_0.3.0.9000.tgz(r-4.6-x86_64)mixtime_0.3.0.9000.tgz(r-4.6-arm64)mixtime_0.3.0.9000.tgz(r-4.5-x86_64)mixtime_0.3.0.9000.tgz(r-4.5-arm64)
mixtime_0.3.0.9000.tar.gz(r-4.7-arm64)mixtime_0.3.0.9000.tar.gz(r-4.7-x86_64)mixtime_0.3.0.9000.tar.gz(r-4.6-arm64)mixtime_0.3.0.9000.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
mixtime/json (API)

# Install 'mixtime' in R:
install.packages('mixtime', repos = c('https://mitchelloharawild.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mitchelloharawild/mixtime/issues

Pkgdown/docs site:https://pkg.mitchelloharawild.com

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

7.28 score 10 stars 2 packages 9 scripts 296 downloads 112 exports 9 dependencies

Last updated from:31ac57f786. Checks:14 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK167
linux-devel-x86_64OK218
source / vignettesOK282
linux-release-arm64OK184
linux-release-x86_64OK178
macos-release-arm64OK159
macos-release-x86_64OK214
macos-oldrel-arm64OK147
macos-oldrel-x86_64OK343
windows-devel-arm64OK293
windows-devel-x86_64OK221
windows-release-arm64OK244
windows-release-x86_64OK193
windows-oldrel-x86_64OK169
wasm-releaseFAIL135

Exports:%d%%di%%f%%fi%%m%%mi%%o%%oi%%p%%pi%%s%%si%as_mixtimecal_gregoriancal_isoweekcal_sym454cal_time_civilcal_time_lunarcal_time_lunar_synodiccal_time_solarcal_time_solar_transitchronon_cardinalitychronon_cardinality_fixedchronon_commonchronon_divmodchronon_epochchronon_format_attrchronon_format_cyclicalchronon_format_durationchronon_format_linearchronon_parse_cyclicalchronon_parse_linearcircsumclass_mixtimecyccyclical_labelscyclical_labels_formatcyclical_labels_parsecyclical_timedatedatetimeday_of_monthday_of_weekday_of_yeardaysdurationhoursis_mixtimeis_time_cyclicalis_time_durationis_time_linearlabel_schemelinlinear_labelslinear_labels_formatlinear_labels_parselinear_timeloc_altitudeloc_latitudeloc_longitudemillisecondsminutesmixtimemonth_of_yearmonthsmt_cyclicalmt_durationmt_linearmt_loc_unitmt_timemt_tz_unitmt_unitnew_calendarnew_cyclical_time_fnnew_duration_fnnew_linear_time_fnnew_mixtimenew_timenew_time_unitparse_formatquarterssecondstime_calendartime_ceilingtime_chronontime_componentstime_composetime_cycletime_floortime_is_complete_attime_is_cyclicaltime_is_determinate_attime_is_durationtime_is_lineartime_of_daytime_parsetime_roundtime_unit_abbrtime_unit_fulltime_unit_pluraltz_abbreviationtz_nametz_offsettz_transitionsvocab_tableweek_of_yearweeksyearyearmonthyearquarteryearsyearweek

Dependencies:clicpp11gluelifecyclerlangS7tzdbvctrsvecvec

Extending mixtime
Time units | Calendars | Calendar arithmetic | Cardinality | Divmod | Epoch anchors | Displaying time | Time units | Time labels | Linear time labels: linear_labels() | Cyclical time labels: cyclical_labels() | Formatting time | Linear time formats: chronon_format_linear() | Cyclical time formats: chronon_format_cyclical() | Duration formats: chronon_format_duration() | Parsing time

Last update: 2026-08-23
Started: 2026-04-01

Time format strings
Time component codes | Advanced time formatting | Comparison with POSIX time format strings

Last update: 2026-08-19
Started: 2026-05-13

Readme and manuals

Help Manual

Help pageTopics
Allen's interval algebra for time vectors%d% %di% %f% %fi% %m% %mi% %o% %oi% %p% %pi% %s% %si% allen-interval-algebra
Convert a time class into a mixtimeas_mixtime
Gregorian time unit classescalendar_gregorian cal_gregorian
ISO 8601 time unit classescalendar_isoweek cal_isoweek
Symmetry454 time unit classescalendar_sym454 cal_sym454
Civil time unit classescalendar_time_civil cal_time_civil
Lunar time unit classescalendar_time_lunar cal_time_lunar cal_time_lunar_synodic
Solar time unit classescalendar_time_solar cal_time_solar cal_time_solar_transit
Cardinality between time granuleschronon_cardinality
Find the common chronon of a time objectchronon_common chronon_common.mixtime
Convert between chronons of different time granuleschronon_divmod
Epoch offset for chrononschronon_epoch
Default formatting strings for chronon attributeschronon_format_attr
Default formatting strings for chrononschronon_format_cyclical chronon_format_duration chronon_format_linear
Default parsing format strings for chrononschronon_parse_cyclical chronon_parse_linear
Compute circular rolling sumscircsum
Base S7 class for mixtime vector objectsclass_mixtime
Linear and cyclical component helperscomponent_helpers cyc lin
Cyclical time pointscyclical_time
Cyclical time helperscyclical_time_helpers day_of_month day_of_week day_of_year month_of_year time_of_day week_of_year
Duration vectorsduration
Duration helper functionsdays duration_helpers hours milliseconds minutes months quarters seconds weeks years
Format mixtime vectorsformat,mt_time-method format.mt_time
Check if an object is a mixtimeis_mixtime
Check the time type of valuesis_time is_time_cyclical is_time_duration is_time_linear time_is_cyclical time_is_duration time_is_linear
Describe a granule's label schemecyclical_labels label_scheme linear_labels
Render and parse a granule's labelscyclical_labels_format cyclical_labels_parse linear_labels_format linear_labels_parse
Linear time pointslinear_time
Linear time helper functionsdate datetime linear_time_helpers year yearmonth yearquarter yearweek
Create a mixtime vectormixtime
Extract locations from an objectloc_altitude loc_latitude loc_longitude mixtime_location
Comparison operators for cyclical time ('mt_cyclical')!=,mt_cyclical-method <,mt_cyclical-method <=,mt_cyclical-method ==,mt_cyclical-method >,mt_cyclical-method >=,mt_cyclical-method mt_cyclical-compare
Comparison operators for durations ('mt_duration')!=,mt_duration-method <,mt_duration-method <=,mt_duration-method ==,mt_duration-method >,mt_duration-method >=,mt_duration-method mt_duration-compare
Comparison operators for linear time ('mt_linear')!=,mt_linear-method <,mt_linear-method <=,mt_linear-method ==,mt_linear-method >,mt_linear-method >=,mt_linear-method mt_linear-compare
Time vector classesmt_cyclical mt_duration mt_linear mt_time mt_time-class
Base S7 class for creating new time unitsmt_loc_unit mt_tz_unit mt_unit
Create a new calendarnew_calendar
Cyclical time function factorynew_cyclical_time_fn
Duration function factorynew_duration_fn
Linear time function factorynew_linear_time_fn
Constructor for mixtime vectorsnew_mixtime
Constructor for mixtime time vectorsnew_time
Create a new time unit classnew_time_unit
Candidate format strings for parsing timeparse_format
Generate sequences of mixtime valuesseq.mixtime::mixtime seq.mixtime::mt_time
Obtain the calendar of a time objecttime_calendar
Obtain the chronon of a time objecttime_chronon
Extract linear and cyclical time componentstime_components
Compose a linear time vector from linear and cyclical componentstime_compose
Obtain the cycle of a time objecttime_cycle
Test whether a granule is completed at a time pointtime_is_complete_at
Test whether time is determinate at a granule's precisiontime_is_determinate_at
Parse text into a time pointtime_parse
Round, floor and ceiling transformations for time objectstime_ceiling time_floor time_round trunc_time
Time units as a stringtime_unit_abbr time_unit_full time_unit_plural
Get timezone abbreviationtz_abbreviation
Extract timezone from an objecttz_name
Get timezone offsettz_offset
Get timezone transitionstz_transitions
Build a 'vocab' function from a plain name tablevocab_table