powered by
This function takes a series of annual returns and calculate the annualized return.
pt.annrtn(r,n)
:annual returns
:number of years
# NOT RUN { r <- runif(100,-1,1) # generate random number to simulate returns annualizedreturn <- pt.annrtn(r,100) # }
Run the code above in your browser using DataLab