Learn R Programming

PMmisc (version 0.1.2)

cv.bondprice: Calculate the plain vanilla bond price

Description

Calculate the plain vanilla bond price

Usage

cv.bondprice(par,c,yield,n,m)

Arguments

par

:the face value of the bond

c

:the annual coupon rate of the bond

yield

:the annual yield to maturity of a bond

n

:number of years

m

:compounding period in a year

Examples

Run this code
# NOT RUN {
cv.bondprice(1000,0.0248,0.0248,10,2)
# }

Run the code above in your browser using DataLab