getReturns: easily get stock return data

Description Usage Arguments Value Examples

View source: R/main.R

Description

easily get stock return data

Usage

1
getReturns(tickers, look_back, start, end, rolling = FALSE)

Arguments

vector

string formatted stock tickers

number

return period (1->daily returns, 21->monthly, 252->annual)

string

data collection start date

string

data collection end date

boolean

get rolling returns? defaults FALSE

Value

list of matrices with return data

Examples

1
getReturns(c("FB","GS"),21,"2012-01-01","2015-01-01")

NathanEpstein/finData documentation built on May 9, 2017, 1:22 p.m.