| getDSdata | R Documentation |
A function to extract the log-returns
of 16 financial series and time series provided by the packages datasets
(EuStockMarkets, sunspot.year) and timeSeries (USDCHF, MSFT, LPP2005REC).
The 16 datasets are converted to a list of numeric without any reference
to the original dates. This list is usually called DS, hence the name.
getDSdata()
The dataset is usually created by the instruction DS <- getDSdata().
Then, it is used with a call to DS[[j]] with j in 1:16.
"USDCHF" (USDCHF, timeSeries)
"MSFT" (MSFT, timeSeries)
"DAX" (EuStockMarkets, datasets)
"SMI" (EuStockMarkets, datasets)
"CAC" (EuStockMarkets, datasets)
"FTSE" (EuStockMarkets, datasets)
"SBI" (LPP2005REC, timeSeries)
"SPI" (LPP2005REC, timeSeries)
"SII" (LPP2005REC, timeSeries)
"LMI" (LPP2005REC, timeSeries)
"MPI" (LPP2005REC, timeSeries)
"ALT" (LPP2005REC, timeSeries)
"LPP25" (LPP2005REC, timeSeries)
"LPP40" (LPP2005REC, timeSeries)
"LPP60" (LPP2005REC, timeSeries)
"sunspot" (sunspot.year, datasets)
Note that sunspot.year is regularly updated with each new version of
R. The generated dataset is logreturn(sunspot.year + 1000).
EuStockMarkets, sunspot.year,
TimeSeriesData, regkienerLX,
fitkienerX
require(timeSeries)
getDSdata
DS <- getDSdata()
attributes(DS)
sapply(DS, length)
sapply(DS, head)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.