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

Description Usage Arguments

View source: R/object_functions.R

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

 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", ...)

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.


maRketSim documentation built on May 29, 2017, 10:54 p.m.