Learn R Programming

DTSg offers basic time series data 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 for those who prefer the latter. Finally yet importantly, its functional approach allows for incorporating functionalities from many other packages.

Installation

Install the latest release from CRAN:

install.packages("DTSg")

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

remotes::install_github("gisler/DTSg")

Semantic versioning

Releases of this project are versioned following the rules of SemVer.

Copy Link

Version

Install

install.packages('DTSg')

Monthly Downloads

470

Version

2.0.0

License

MIT + file LICENSE

Maintainer

Gerold Hepp

Last Published

January 20th, 2025

Functions in DTSg (2.0.0)

print.DTSg

Print object
interpolateLinear

Linear interpolation
rollback

Rollback of months
nas.DTSg

List missing values
rollapply.DTSg

Rolling window function
rowaggregate.DTSg

Aggregate values row-wise
plot.DTSg

Plot time series data
merge.DTSg

Merge two objects
refresh.DTSg

Object integrity
rowbind.DTSg

Combine rows
setColNames.DTSg

Set column names
subset.DTSg

Subset time series data
values.DTSg

Get values
summary.DTSg

Summarise time series data
setCols.DTSg

Set column values
colapply.DTSg

Apply function column-wise
cols.DTSg

Get column names
flow

Daily river flows
alter.DTSg

Alter time series
DTSg

DTSg class
getCol.DTSg

Get column vector
S3WrapperGenerator

S3 wrapper method generator
TALFs

Temporal Aggregation Level Functions (TALFs)
aggregate.DTSg

Aggregate values
clone.DTSg

Clone object