compute_annualized_return: Compute annualized return based on daily returns for vector

View source: R/utils.R

compute_annualized_returnR Documentation

Compute annualized return based on daily returns for vector

Description

Compute annualized return based on daily returns for vector

Usage

compute_annualized_return(R, scale = 252)

Arguments

R

An xts or vector with returns

scale

A numeric for the number of periods in a year (daily = 252 is default, monthly = 12, quarterly = 4, yearly = 1)

Value

A vector with annualized returns


lorenzbr/PortfolioTracker documentation built on Feb. 11, 2023, 8:27 a.m.