View source: R/rbcb_get_currencies.R
| get_currency_cross_rates | R Documentation |
The currency matrix has the currency cross rates for all currencies present in the BCB system.
get_currency_cross_rates(date, ref = c("ask", "bid"))
date |
reference date |
ref |
reffers to
|
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.
## Not run:
x <- get_currency_cross_rates("2017-03-10")
currencies <- c("USD", "BRL", "AUD", "EUR", "CAD")
x[currencies, currencies]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.