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

45,365

Version

4041.111

License

GPL (>= 2)

Last Published

September 22nd, 2024

Functions in timeSeries (4041.111)

dimnames

Dimension and their names for 'timeSeries' objects
cbind

Bind 'timeSeries' objects by column or row
rank

Sample ranks of a time series
scale

Center and scale 'timeSeries' objects
merge

Merge 'timeSeries' objects
wealth

Conversion of an index to wealth
start

Start and end of a 'timeSeries'
apply

Apply functions over time windows
sort

Sort a 'timeSeries' by time stamps
periodical

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

Financial returns
TimeSeriesSubsettings

Subsetting time series
align-methods

Align a 'timeSeries' object to equidistant time stamps
spreads

Spreads and mid quotes
turns

Turning points of a time series
t

Transpose 'timeSeries' objects
drawdowns

Calculations of drawdowns
dummyTimeSeries

Create dummy time series
is.timeSeries

Check if an object is from class 'timeSeries'
internals

Exported internal functions
math

Mathematical operations on 'timeSeries'
na.contiguous

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

Cumulated column statistics
lag

Lag a 'timeSeries' object
timeSeries-method-stats

Base R functions applied to 'timeSeries' objects
colStats

Column statistics
TimeSeriesData

Time series data sets
cumulated

Cumulated time series from returns
runlengths

Runlengths of a time series
splits

splits
aggregate-methods

Aggregate time series
filter

Linear filtering on a time series
isUnivariate

Checks if a time series is univariate
attributes

Get and set optional attributes of a 'timeSeries'
finCenter

Get and set Financial center of a 'timeSeries'
rowCum

Cumulative row statistics
durations

Durations from a 'timeSeries'
comment

Get and set comments for 'timeSeries' objects
readSeries

Read a 'timeSeries' from a text file
as

Convert objects to/from class 'timeSeries'
window

Methods for 'window' in package 'timeSeries'
na

Handle missing values in 'timeSeries' objects
smooth

Smooths time series objects
units

Get and set unit names of a 'timeSeries'
timeSeries-class

Class 'timeSeries' in package timeSeries
TimeSeriesClass

Create objects from class 'timeSeries'
print-methods

Print 'timeSeries' objects
plot-methods

Plot 'timeSeries' objects
monthly

Special monthly series
series-methods

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

Order statistics
rollMean

Rolling statistics
timeSeries-deprecated

Deprecated functions in 'timeSeries' package
DataPart,timeSeries-method

DataPart,timeSeries-method
time

Get and set time stamps of a 'timeSeries'
orderColnames

Reorder column names of a time series
isRegular

Checks if a time series is regular
str-methods

Display the structure of 'timeSeries' objects
description

Creates date and user information
diff

Difference a 'timeSeries' object
rev

Reverse a 'timeSeries'
sample

Resample 'timeSeries' objects
attach

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

Utilities and tools package