stock_returns | R Documentation |
Nineteen years of daily log returns on three stocks and an ETF.
data(stock_returns)
An xts
object with 4777 observations and 4 columns.
The columns are the daily log returns for the tickers IBM, AAPL, SPY and XOM,
as sourced from Yahoo finance using the quantmod
package.
Daily returns span from January, 2000 through December, 2018.
Returns are ‘log returns’, which are the differences of the logs of
daily adjusted closing price series, as defined by Yahoo finance (thus presumably
including adjustments for splits and dividends). Dates of observations are
the date of the second close defining the return, not the first.
The author makes no guarantees regarding correctness of this data.
Steven E. Pav shabbychef@gmail.com
Data were collected on October 2, 2019, from Yahoo finance using the
quantmod
package.
if (require(xts)) {
data(stock_returns)
as.sr(stock_returns)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.