get.clean.data: Get clean data from yahoo/google

Description Usage Arguments Value Examples

View source: R/Utils.R

Description

Get clean data from yahoo/google

Usage

1
get.clean.data(tickers, src = "yahoo", first.date, last.date)

Arguments

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)

Value

A dataframe with the cleaned data

Examples

1
2
3
df.sp500 <- get.clean.data('^GSPC',
                           first.date = as.Date('2010-01-01'),
                           last.date = as.Date('2010-02-01'))

BatchGetSymbols documentation built on Oct. 11, 2018, 5:05 p.m.