data(edhec)
table.Drawdowns(edhec[,"Long.Short.Equity"])
table.Drawdowns(edhec[,"Relative.Value"])
table.Drawdowns(download.SP500PriceReturns(end="2006-12-31"))
# note that this example shows a drawdown that has not yet ended
Run the code above in your browser using DataLab