get_last_n_goldprices {rnbp} | R Documentation |
Retrieves the last n gold prices.
Description
Retrieves the last n gold prices.
Usage
get_last_n_goldprices(n)
Arguments
n |
number of gold prices to retrieve. |
Value
nbp_api_response object containing the last n gold prices.
See Also
Other goldprice:
get_current_goldprice()
,
get_goldprice_from_interval()
,
get_goldprice_from()
,
get_todays_goldprice()
Examples
tryCatch({
## Fetch the last 3 gold price values
response <- get_last_n_goldprices(3)
## Preview response content
response$content
},
error = function(e) message(e)
)
[Package rnbp version 0.2.1 Index]