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

MultiCurrencyMoney(monies)

Arguments

monies

a list of SingleCurrencyMoney

Value

a MultiCurrencyMoney object that extends tibble::tibble()

See also

Examples

mcm <- MultiCurrencyMoney(list( SingleCurrencyMoney(1, AUD()), SingleCurrencyMoney(2, USD()) )) rbind(mcm, mcm)
#> # <MultiCurrencyMoney> of length 4 #> values currencies #> <dbl> <list> #> 1 1 <CCY: AUD> #> 2 2 <CCY: USD> #> 3 1 <CCY: AUD> #> 4 2 <CCY: USD>