| MultiCurrencyMoney {fmbasics} | R Documentation |
MultiCurrencyMoney
Description
This class associates a vector of numeric values with a list of currencies.
This can be useful for example to store value of cash flows. Internally it
represents this information as an extension to a tibble.
You are able to bind MultiCurrencyMoney objects by using rbind() (see
example below).
Usage
MultiCurrencyMoney(monies)
Arguments
monies |
a list of SingleCurrencyMoney |
Value
a MultiCurrencyMoney object that extends tibble::tibble()
See Also
Other money functions: CashFlow,
SingleCurrencyMoney,
is.CashFlow,
is.MultiCurrencyMoney,
is.SingleCurrencyMoney
Examples
mcm <- MultiCurrencyMoney(list(
SingleCurrencyMoney(1, AUD()),
SingleCurrencyMoney(2, USD())
))
rbind(mcm, mcm)
[Package fmbasics version 0.3.0 Index]