SingleCurrencyMoney {fmbasics} | R Documentation |
SingleCurrencyMoney
Description
This class associates a numeric vector with a currency. This is useful for
example in representing the value of a derivative. You can concatenate a set
SingleCurrencyMoney
objects and return a
MultiCurrencyMoney object (see example below)
Usage
SingleCurrencyMoney(value, currency)
Arguments
value |
a numeric vector of values |
currency |
a single Currency object |
Value
a SingleCurrencyMoney
object
See Also
Other money functions: CashFlow
,
MultiCurrencyMoney
,
is.CashFlow
,
is.MultiCurrencyMoney
,
is.SingleCurrencyMoney
Examples
SingleCurrencyMoney(1:5, AUD())
c(SingleCurrencyMoney(1, AUD()), SingleCurrencyMoney(100, USD()))
[Package fmbasics version 0.3.0 Index]