daily_returns: Given a list of ticker symbols, retrieve the symbol's price...

Description Usage Arguments Value See Also

View source: R/daily.R

Description

Given a list of ticker symbols, retrieve the symbol's price history from the given environment and compute the daily close price return for each symbol. Returns an XTS object containing columns for each symbol.

Usage

1
daily_returns(symbols, n_roc = 1, env = .GlobalEnv)

Arguments

symbols

the list of ticker symbols

n_roc

the number of periods for return lookback, default 1

env

the environment containing price histories, default .GlobalEnv

Value

merged close monthly price returns for each symbol

See Also

TTR::ROC


greatgray/scorecard documentation built on Feb. 14, 2018, 4:28 a.m.