Description Usage Arguments Details Value See Also Examples
View source: R/endpoint_tables.R
Retrieves the exchange rate table from a specific date.
1 |
table |
specifies which table should be fetched. |
date |
date from which the exchange rate table should be fetched. |
As exchange rate tables are not published on the weekends fetching values from a weekend date will result in a 404 error. In those cases the function returns an error with an appropriate message.
nbp_api_response object containing the exchange rate table from the specified date.
https://api.nbp.pl/#kursyWalut
Other tables:
get_current_exchangerate_table()
,
get_exchangerate_tables_from_interval()
,
get_last_n_exchangerate_tables()
,
get_todays_exchangerate_table()
1 2 3 4 5 6 7 8 | tryCatch({
## Fetch the A exchange rate table from a week ago
response <- get_exchangerate_table_from("A", Sys.Date() - 7)
## Preview response content
response$content
},
error = function(e) message(e)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.