Description Usage Arguments Value See Also
Given a list of ticker symbols, retrieve the symbol's price history from the given environment and compute the monthly adjusted close price return for each symbol. Returns an XTS object containing columns for each symbol.
1 | monthly_returns(symbols, env = .GlobalEnv, n_roc = 1)
|
symbols |
the list of ticker symbols |
env |
the environment containing price histories,
default |
n_roc |
the number of periods for return lookback, default 1 |
merged adjusted monthly price returns for each symbol
TTR::ROC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.