Learn R Programming

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

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

54,625

Version

4032.108

License

GPL (>= 2)

Maintainer

Georgi Boshnakov

Last Published

December 19th, 2023

Functions in timeSeries (4032.108)

drawdowns

Calculations of drawdowns
TimeSeriesData

Time series data sets
t

Transpose 'timeSeries' objects
start

Start and end of a 'timeSeries'
TimeSeriesSubsettings

Subsetting time series
dummyTimeSeries

Create dummy time series
scale

Center and scale 'timeSeries' objects
align-methods

Align a 'timeSeries' object to equidistant time stamps
durations

Durations from a 'timeSeries'
cumulated

Cumulated time series from returns
splits

splits
monthly

Special monthly series
spreads

Spreads and mid quotes
sort

Sort a 'timeSeries' by time stamps
periodical

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

Turning points of a time series
runlengths

Runlengths of a time series
wealth

Conversion of an index to wealth
returns

Financial returns
is.timeSeries

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

Print 'timeSeries' objects
internals

Exported internal functions
plot-methods

Plot 'timeSeries' objects
colCum

Cumulated column statistics
timeSeries-method-stats

Base R functions applied to 'timeSeries' objects
math

Mathematical operations on 'timeSeries'
colStats

Column statistics
lag

Lag a 'timeSeries' object
orderColnames

Reorder column names of a time series
filter

Linear filtering on a time series
aggregate-methods

Aggregate time series
na.contiguous

Find longest contiguous stretch of non-NAs or check for NAs
orderStatistics

Order statistics
rollMean

Rolling statistics
window

Methods for 'window' in package 'timeSeries'
na

Handle missing values in 'timeSeries' objects
DataPart,timeSeries-method

DataPart,timeSeries-method
isRegular

Checks if a time series is regular
rowCum

Cumulative row statistics
comment

Get and set comments for 'timeSeries' objects
smooth

Smooths time series objects
as

Convert objects to/from class 'timeSeries'
attributes

Get and set optional attributes of a 'timeSeries'
timeSeries-class

Class 'timeSeries' in package timeSeries
finCenter

Get and set Financial center of a 'timeSeries'
timeSeries-deprecated

Deprecated functions in 'timeSeries' package
series-methods

Get and set the data component of a 'timeSeries'
time

Get and set time stamps of a 'timeSeries'
units

Get and set unit names of a 'timeSeries'
TimeSeriesClass

Create objects from class 'timeSeries'
readSeries

Read a 'timeSeries' from a text file
isUnivariate

Checks if a time series is univariate
description

Creates date and user information
str-methods

Display the structure of 'timeSeries' objects
diff

Difference a 'timeSeries' object
rev

Reverse a 'timeSeries'
cbind

Bind 'timeSeries' objects by column or row
apply

Apply functions over time windows
sample

Resample 'timeSeries' objects
attach

Attach a 'timeSeries' to the search path
dimnames

Dimension and their names for 'timeSeries' objects
rank

Sample ranks of a time series
timeSeries-package

Utilities and tools package
merge

Merge 'timeSeries' objects