Return.cumulative {PerformanceAnalytics} | R Documentation

## calculate a compounded (geometric) cumulative return

### Description

This is a useful function for calculating cumulative return over a period of time, say a calendar year. Can produce simple or geometric return.

### Usage

    Return.cumulative(R, geometric = TRUE)

### Arguments

`R` | a vector, matrix, data frame, timeSeries or zoo object of asset returns
`geometric` | generate geometric (TRUE) or simple (FALSE) returns, default TRUE

### Details

product of all the individual period returns

prod(1+R)-1

### Value

cumulative simple or geometric return

### Author(s)

Peter Carl

### References

Bacon, Carl. Practical Portfolio Performance Measurement and Attribution. Wiley. 2004. p. 6

### See Also

`Return.annualized`

### Examples

    data(edhec)
    head(edhec[,13,drop=FALSE])
    Return.cumulative(edhec[,13])
    Return.cumulative(edhec[,13], geometric = FALSE)

[Package PerformanceAnalytics version 0.9.5 Index]