Learn R Programming

FinAna (version 0.1.2)

bond.price: Calculate the plain vanilla bond price

Description

Calculate the plain vanilla bond price

Usage

bond.price(par,c,n,yield,m)

Arguments

par

:the face value of the bond

c

:the annual coupon rate of the bond

n

:number of years

yield

:the annual yield to maturity of a bond

m

:couponding period in a year

Examples

Run this code
# NOT RUN {
#bond.price(1000,0.03,10,0.0248,2)
# }

Run the code above in your browser using DataLab