returns | R Documentation |
Estimates returns with a given period.
returns(series, dates = NULL, period = "daily", type = "arithmetic")
series |
object of state prices, or an OHLC type object. |
dates |
Initial and end date. |
period |
returns period. c(‘daily’, ‘weekly’, ‘monthly’, ‘quarterly’, ‘yearly’) |
type |
type of returns: arithmetic (discrete) or log (continuous) |
Returns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.