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

29,765

Version

4041.110

License

GPL (>= 2)

Last Published

September 16th, 2024

Functions in timeSeries (4041.110)

t

Transpose 'timeSeries' objects
TimeSeriesData

Time series data sets
drawdowns

Calculations of drawdowns
scale

Center and scale 'timeSeries' objects
TimeSeriesSubsettings

Subsetting time series
sort

Sort a 'timeSeries' by time stamps
start

Start and end of a 'timeSeries'
dummyTimeSeries

Create dummy time series
durations

Durations from a 'timeSeries'
returns

Financial returns
periodical

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

Special monthly series
wealth

Conversion of an index to wealth
internals

Exported internal functions
spreads

Spreads and mid quotes
turns

Turning points of a time series
cumulated

Cumulated time series from returns
align-methods

Align a 'timeSeries' object to equidistant time stamps
is.timeSeries

Check if an object is from class 'timeSeries'
splits

splits
runlengths

Runlengths of a time series
orderStatistics

Order statistics
rowCum

Cumulative row statistics
plot-methods

Plot 'timeSeries' objects
math

Mathematical operations on 'timeSeries'
smooth

Smooths time series objects
as

Convert objects to/from class 'timeSeries'
comment

Get and set comments for 'timeSeries' objects
timeSeries-class

Class 'timeSeries' in package timeSeries
na.contiguous

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

Base R functions applied to 'timeSeries' objects
lag

Lag a 'timeSeries' object
time

Get and set time stamps of a 'timeSeries'
str-methods

Display the structure of 'timeSeries' objects
description

Creates date and user information
series-methods

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

Deprecated functions in 'timeSeries' package
colCum

Cumulated column statistics
filter

Linear filtering on a time series
DataPart,timeSeries-method

DataPart,timeSeries-method
rollMean

Rolling statistics
aggregate-methods

Aggregate time series
isRegular

Checks if a time series is regular
print-methods

Print 'timeSeries' objects
finCenter

Get and set Financial center of a 'timeSeries'
attributes

Get and set optional attributes of a 'timeSeries'
isUnivariate

Checks if a time series is univariate
orderColnames

Reorder column names of a time series
na

Handle missing values in 'timeSeries' objects
window

Methods for 'window' in package 'timeSeries'
colStats

Column statistics
readSeries

Read a 'timeSeries' from a text file
TimeSeriesClass

Create objects from class 'timeSeries'
units

Get and set unit names of a 'timeSeries'
sample

Resample 'timeSeries' objects
attach

Attach a 'timeSeries' to the search path
merge

Merge 'timeSeries' objects
rev

Reverse a 'timeSeries'
cbind

Bind 'timeSeries' objects by column or row
rank

Sample ranks of a time series
dimnames

Dimension and their names for 'timeSeries' objects
apply

Apply functions over time windows
diff

Difference a 'timeSeries' object
timeSeries-package

Utilities and tools package