maRketSim (version 0.9.2)

pv: Return the present/future value of an object under a given market conditions

Description

Returns the present/future value of a bond/portfolio/cash/account under specified market conditions. pv.history.account returns a vector unlike the other pv methods.

Usage

pv(x, ...) "pv"(x, ...) "pv"(x, ...) "pv"(x, mkt, ...) "pv"(x,mkt=x$orig.mkt,...) "pv"(x,mkt=x$orig.mkt,...) "pv"(x, type="history.account", ...) fv(x, mkt, ...) "fv"(x, mkt, ...) "fv"(x, mkt, ...) "fv"(x, mkt, compound="continuous", ...)

Arguments

x
A bond/portfolio/cash/account object
mkt
The market under which the present value is to be evaluated
type
Either "history.account", "bond", "portfolio.bond", or "cash". Determines output type.
compound
Compounding type. Currently only option is "continuous".
...
Pass-alongs.