get.clean.data | R Documentation |
Get clean data from yahoo/google
get.clean.data(tickers, src = "yahoo", first.date, last.date)
tickers |
A vector of tickers. If not sure whether the ticker is available, check the websites of google and yahoo finance. The source for downloading the data can either be Google or Yahoo. The function automatically selects the source webpage based on the input ticker. |
src |
Source of data (yahoo or google) |
first.date |
The first date to download data (date or char as YYYY-MM-DD) |
last.date |
The last date to download data (date or char as YYYY-MM-DD) |
A dataframe with the cleaned data
df.sp500 <- get.clean.data('^GSPC', first.date = as.Date('2010-01-01'), last.date = as.Date('2010-02-01'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.