Description Usage Arguments Value Author(s) References Examples
View source: R/getSymbols.ALFRED.R
Robert Shillers S&P 500 Stock Market Data from his Excel spreadsheet as a R CRAN package quantmod function getSymbols source (src).
1 2 3 4 5 6 7 | getSymbols.YaleU(
Symbols,
env,
return.class = "xts",
returnIndex = "ObservationDate",
...
)
|
Symbols |
A character vector specifying the names of each symbol to be loaded. Possible Symbols are the following: "YaleUStockMarketData" (means get all of the columns) xor one specific column name. e.g. "CAPE" |
env |
where to create objects. (.GlobalEnv) |
return.class |
desired class of returned object. Can be xts, zoo, data.frame, or xts (default) |
returnIndex |
one of "ObservationDate" (row element date) or "LastUpdatedDate" (dates of estimations of in cases such that estimations are done?). Default is ObservationDate". Note, an 'observation date'(row element date) is not the 'date of estimation'. The 'observation date' (typically) observes the beginning of the 'date range' (its period: ObservationDate + Frequency). The LastUpdatedDate date, that is, the date of estimation, is after the the period has completed, that is after ObservationDate + Frequency. |
... |
Dots passed. |
A call to getSymbols.YaleU will load into the specified
environment one object for each Symbol
specified,
with class defined by return.class
.
Andre Mikulec (adapted original code to work with Yale University stock market data)
Online Data of Robert Shiller http://www.econ.yale.edu/~shiller/data.htm
Home Page of Robert J. Shiller - Yale University http://www.econ.yale.edu/~shiller/
1 2 3 4 5 6 7 8 | ## Not run:
# common usage
getSymbols(c("CAPE", "Dividends", "Earnings"), src = "YaleU")
# all columns in one xts object
getSymbols("YaleUstockMarketData", src = "YaleU")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.