powered by
Calculate the plain vanilla bond price
cv.bondprice(par,c,yield,n,m)
:the face value of the bond
:the annual coupon rate of the bond
:the annual yield to maturity of a bond
:number of years
:compounding period in a year
# NOT RUN { cv.bondprice(1000,0.0248,0.0248,10,2) # }
Run the code above in your browser using DataLab