get_currency_cross_rates {rbcb} | R Documentation |
Get currency matrix from BCB
Description
The currency matrix has the currency cross rates for all currencies present in the BCB system.
Usage
get_currency_cross_rates(date, ref = c("ask", "bid"))
Arguments
date |
reference date |
ref |
reffers to
|
Value
A square matrix
with colnames
and rownames
filled with currency symbols
The cells must be read as ROW
in COL
, for example, BRL (row) in USD (column) means Brazilian Reals in American Dollars.
Examples
## Not run:
x <- get_currency_cross_rates("2017-03-10")
currencies <- c("USD", "BRL", "AUD", "EUR", "CAD")
x[currencies, currencies]
## End(Not run)
[Package rbcb version 0.1.14 Index]