drawdown | R Documentation |
Calculate drawdown array from asset returns. Return a vector with numbers >= 0
drawdown(x, is_geom = TRUE)
x |
asset returs |
is_geom |
TRUE geometric, FALSE simple |
numeric vector of length x
xx <- c(0.003,0.026,0.015,-0.009,-0.014,-0.024,0.015,0.066,-0.014,0.039)
drawdown(xx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.