pt.annrtn: Annualized return

Description Usage Arguments Examples

View source: R/pt.annrtn.R

Description

This function takes a series of annual returns and calculate the annualized return.

Usage

1
pt.annrtn(r,n)

Arguments

r

:annual returns

n

:number of years

Examples

1
2
r <- runif(100,-1,1) # generate random number to simulate returns
annualizedreturn <- pt.annrtn(r,100)

YRmisc documentation built on March 25, 2020, 5:13 p.m.

Related to pt.annrtn in YRmisc...