Learn R Programming

⚠️There's a newer version (0.2.4) of this package.Take me there.

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

160

Version

0.2.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Grzegorz Klima

Last Published

November 7th, 2025

Functions in tind (0.2.2)

ordered-regular

Working with Ordered and Regularly Spaced Time Indices
daycount_frac

Differences Between Dates as Year Fractions / Accrual Factors
merge

Merging Time-indexed Data
diff

Lagged Differences for tind and tdiff Objects
cut

Group Time Indices into Periods / Convert to a Factor
jdn

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

Conversion between Objects of tind Class and Character Vectors
date2num

Conversion between Dates and Their Integer Representations
date_time

Construct Date-Time Indices from Date and Time Components
match_t

Matching Time Indices
parse_t

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

Determine the Resolution of Time Indices
scale_tind

Time Scales for Plotting with ggplot2
tdiff

Time Differences
set-ops

Set Operations on Time Intervals and Time Indices
t_unit

Get Time Unit
pretty

Pretty Breakpoints for Time Indices
rounding

Rounding Time Indices
seq

Create a Sequence of Time Indices
ti_type

Get Time Index Type
tind-coercion

Conversion of Objects of tind Class
tinterval

Time Intervals
tind

A Common Representation of Time Indices of Different Types
time-index-properties

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

Determine Time Span of Time Indices and Time Intervals
tzone

Read or Set Time Zone for Date-Time Indices
time-index-components

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

Basic Methods for tind Class
year_frac

Converting Time Indices to Year Fractions and Back
tind-package

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

Conversion between tind and Other Time Index Representations
as.tzone

Get the Same Date and Time in a Different Time Zone
axis_t

Compute Time Axis Parameters for Plotting
bizday

Business Days
current-date-time

Current Date and Time
calendar-names

Calendar Names
Ops

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

Conversion to tind Class
calendars

Working with Custom Calendars
axis.tind

Add Time Axis --- Plotting with graphics Package
calendrical-computations

Calendrical Computations in tind Package