DTSg offers basic time series functionalities such as listing of missing values, application of arbitrary aggregation as well as rolling (asymmetric) window functions and automatic detection of periodicity. As it is mainly based on data.table, it is fast and – in combination with the R6 package – offers reference semantics. In addition to its native R6 interface, it provides an S3 interface inclusive an S3 wrapper method generator for those who prefer the latter. Finally yet importantly, its functional approach allows incorporating functionalities from many other packages.


Install the latest release from CRAN:


CRAN Version CRAN Checks

Install the development version from GitHub (requires the remotes package):


R build status codecov GitHub Super-Linter

Getting Started

A. Basic Usage

B. Advanced Usage

Semantic Versioning

Releases of this project are versioned following the rules of SemVer with one exception: The public API of major version zero (0.y.z) should be considered stable.

Try the DTSg package in your browser

Any scripts or data that you put into this service are public.

DTSg documentation built on May 30, 2021, 5:06 p.m.