Learn R Programming

timeSeries (version 4041.110)

TimeSeriesData: Time series data sets

Description

Three data sets used in example files.

Arguments

Details

The following datasets are available:

MSFT

Daily Microsoft OHLC (Open-high-low-close) prices and volume from 2000-09-27 to 2001-09-27.

USDCHF

USD/CHF intraday foreign exchange rates.

LPP2005REC

Swiss pension fund assets returns benchmark from 2005-11-01 to 2007-04-11.

The datasets are objects from class "timeSeries".

See Also

readSeries, timeSeries

Examples

Run this code
## LPP2005 example data set
data(LPP2005REC)
plot(LPP2005REC, type = "l")
class(LPP2005REC)
dim(LPP2005REC)
head(LPP2005REC)
LPP2005REC[1:5, 2:4]
range(time(LPP2005REC))
summary(LPP2005REC)
   
## MSFT example data set
data(MSFT)
plot(MSFT[, 1:4], type = "l")
plot(MSFT[, 5], type = "h")
class(MSFT)
range(time(MSFT))
head(MSFT)
   
## Plot USDCHF example data set
data(USDCHF)
plot(USDCHF)
range(time(USDCHF))
head(USDCHF)

Run the code above in your browser using DataLab