View source: R/object_functions.R
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | pv(x, ...)
## Default S3 method:
pv(x, ...)
## S3 method for class 'cash'
pv(x, ...)
## S3 method for class 'bond'
pv(x, mkt, ...)
## S3 method for class 'account'
pv(x,mkt=x$orig.mkt,...)
## S3 method for class 'portfolio.bond'
pv(x,mkt=x$orig.mkt,...)
## S3 method for class 'history.account'
pv(x, type="history.account", ...)
fv(x, mkt, ...)
## Default S3 method:
fv(x, mkt, ...)
## S3 method for class 'cash'
fv(x, mkt, ...)
## S3 method for class 'bond'
fv(x, mkt, compound="continuous", ...)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.