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

View source: R/Utils.R

get.clean.dataR Documentation

Get clean data from yahoo/google

Description

Get clean data from yahoo/google

Usage

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

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

BatchGetSymbols documentation built on May 1, 2022, 5:07 p.m.