Skip to content

genPortfolio.bond error in demo_bond.R #2

@gsk3

Description

@gsk3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions