Frequency | R Documentation |
Gives the period of the return distribution (ie 12 if monthly return, 4 if quarterly return)
Frequency(R, ...)
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
... |
any other passthru parameters |
Matthieu Lestel
data(portfolio_bacon)
print(Frequency(portfolio_bacon[,1])) #expected 12
data(managers)
print(Frequency(managers['1996',1:5]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.