Learn R Programming

The R package 'timeSeries' provides a time series class and tools for creation, import, manipulation, statistical and financial computations on time series.

Package timeSeries is part of the Rmetrics suite of R packages and is developed on R-forge at timeSeries. The root of Rmetrics is at R-forge.

Installing timeSeries

Install the latest stable version of timeSeries from CRAN:

install.packages("timeSeries")

You can install the development version of timeSeries from R-forge:

install.packages("timeSeries", repos = "http://R-Forge.R-project.org")

To report bugs visit Rmetrics.

Documentation

You can view the documentation of timeSeries at timeSeriesDoc (an web site produce with pkgdown) or download the reference manual of the latest release from CRAN. There is also a large vignette on plots.

Copy Link

Version

Install

install.packages('timeSeries')

Monthly Downloads

46,920

Version

4052.112

License

GPL (>= 2)

Maintainer

Georgi Boshnakov

Last Published

December 12th, 2025

Functions in timeSeries (4052.112)

TimeSeriesSubsettings

Subsetting time series
TimeSeriesData

Time series data sets
align-methods

Align a 'timeSeries' object to equidistant time stamps
sort

Sort a 'timeSeries' by time stamps
dimnames

Dimension and their names for 'timeSeries' objects
t

Transpose 'timeSeries' objects
rank

Sample ranks of a time series
cbind

Bind 'timeSeries' objects by column or row
sample

Resample 'timeSeries' objects
splits

splits
merge

Merge 'timeSeries' objects
start

Start and end of a 'timeSeries'
turns

Turning points of a time series
dummyTimeSeries

Create dummy time series
durations

Durations from a 'timeSeries'
drawdowns

Calculations of drawdowns
scale

Center and scale 'timeSeries' objects
returns

Financial returns
monthly

Special monthly series
wealth

Conversion of an index to wealth
internals

Exported internal functions
plot-methods

Plot 'timeSeries' objects
runlengths

Runlengths of a time series
spreads

Spreads and mid quotes
math

Mathematical operations on 'timeSeries'
na.contiguous

Find longest contiguous stretch of non-NAs or check for NAs
timeSeries-method-stats

Base R functions applied to 'timeSeries' objects
colStats

Column statistics
is.timeSeries

Check if an object is from class 'timeSeries'
aggregate-methods

Aggregate time series
orderStatistics

Order statistics
smooth

Smooths time series objects
cumulated

Cumulated time series from returns
filter

Linear filtering on a time series
comment

Get and set comments for 'timeSeries' objects
lag

Lag a 'timeSeries' object
periodical

End-of-Period series, stats, and benchmarks
na

Handle missing values in 'timeSeries' objects
orderColnames

Reorder column names of a time series
print-methods

Print 'timeSeries' objects
rollMean

Rolling statistics
as

Convert objects to/from class 'timeSeries'
readSeries

Read a 'timeSeries' from a text file
window

Methods for 'window' in package 'timeSeries'
finCenter

Get and set Financial center of a 'timeSeries'
colCum

Cumulated column statistics
isRegular

Checks if a time series is regular
series-methods

Get and set the data component of a 'timeSeries'
timeSeries-class

Class 'timeSeries' in package timeSeries
rowCum

Cumulative row statistics
units

Get and set unit names of a 'timeSeries'
TimeSeriesClass

Create objects from class 'timeSeries'
isUnivariate

Checks if a time series is univariate
DataPart,timeSeries-method

DataPart,timeSeries-method
time

Get and set time stamps of a 'timeSeries'
attributes

Get and set optional attributes of a 'timeSeries'
str-methods

Display the structure of 'timeSeries' objects
description

Creates date and user information
timeSeries-deprecated

Deprecated functions in 'timeSeries' package
apply

Apply functions over time windows
attach

Attach a 'timeSeries' to the search path
timeSeries-package

Utilities and tools package
rev

Reverse a 'timeSeries'
diff

Difference a 'timeSeries' object