Learn R Programming

A Common Representation of Time Indices of Different Types [R package]

Provides an easy-to-use tind class representing time indices of different types (years, quarters, months, ISO 8601 weeks, dates, time of day, date-time, and arbitrary integer/numeric indices). Includes an extensive collection of functions for calendrical computations (including business applications), index conversions, index parsing, and other operations. Auxiliary classes representing time differences and time intervals (with set operations and index matching functionality) are also provided. All routines have been optimised for speed in order to facilitate computations on large datasets.

Copy Link

Version

Install

install.packages('tind')

Monthly Downloads

563

Version

0.2.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Grzegorz Klima

Last Published

February 2nd, 2026

Functions in tind (0.2.4)

match_t

Matching Time Indices
date2num

Conversion between Dates and Their Integer Representations
cut

Group Time Indices into Periods / Convert to a Factor
daycount_frac

Differences Between Dates as Year Fractions / Accrual Factors
date_time

Construct Date-Time Indices from Date and Time Components
ordered-regular

Working with Ordered and Regularly Spaced Time Indices
merge

Merging Time-indexed Data
jdn

Date and Date-Time Conversion to and from Julian Day Number (JDN)
format

Conversion between Objects of tind Class and Character Vectors
diff

Lagged Differences for tind and tdiff Objects
tdiff

Time Differences
seq

Create a Sequence of Time Indices
pretty

Pretty Breakpoints for Time Indices
set-ops

Set Operations on Time Intervals and Time Indices
scale_tind

Time Scales for Plotting with ggplot2
ti_type

Get Time Index Type
parse_t

Parse Character Representation of Time Indices Given the Order of Components
resolution_t

Determine the Resolution of Time Indices
rounding

Rounding Time Indices
t_unit

Get Time Unit
time-index-components

Time Index Components (Years, Months, Days, ...)
tind-other

Conversion between tind and Other Time Index Representations
tind

A Common Representation of Time Indices of Different Types
tspan

Determine Time Span of Time Indices and Time Intervals
tind-coercion

Conversion of Objects of tind Class
tind-package

A Common Representation of Time Indices of Different Types
tind-methods

Basic Methods for tind Class
time-index-properties

Time Index Properties (Leap Years, Period Lengths, DST)
tzone

Read or Set Time Zone for Date-Time Indices
year_frac

Converting Time Indices to Year Fractions and Back
tinterval

Time Intervals
calendar-names

Calendar Names
as.tzone

Get the Same Date and Time in a Different Time Zone
current-date-time

Current Date and Time
bizday

Business Days
axis_t

Compute Time Axis Parameters for Plotting
calendrical-computations

Calendrical Computations in tind Package
axis.tind

Add Time Axis --- Plotting with graphics Package
Ops

Operations Involving Time Indices, Time Differences, and Time Intervals
as.tind

Conversion to tind Class
calendars

Working with Custom Calendars