Learn R Programming

FinCal (version 0.6.3)

wpr: Weighted mean as a portfolio return

Description

Weighted mean as a portfolio return

Usage

wpr(r, w)

Arguments

r
returns of the individual assets in the portfolio
w
corresponding weights associated with each of the individual assets

Examples

Run this code
wpr(r=c(0.12, 0.07, 0.03),w=c(0.5,0.4,0.1))

Run the code above in your browser using DataLab