The second is in the demo_bond.R file, there is a line:
prt2 <- genPortfolio.bond(10,mkt=mkt1B,dur=5,dur.sd=2,name="bond2")
Error in 1/market.rate : 'market.rate' is missing
It always says market.rate is missing, but this function does not need this particular argument. would you please check to see how to correct that?
Thank you very much.
David