Description Usage Arguments Value Examples
Daily returns for wide-form price data
1 |
df |
A data frame or xts with price data. If a data frame is given then the first column of date type will as the index unless it is manually set in date_col |
roll |
Rolling returns, "1 = no rolling" |
date_col |
To be implemented |
type |
To be implemented |
An object of the same class of df with the returns.
1 | tq_get_wide(c("SPY", "SHV")) %>% dly_ret()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.