parse_rfr {eiopaR} | R Documentation |
Parse the risk free rates API response
Description
This function is used to parse data received from the API to various formats.
Usage
parse_rfr(resp, format)
Arguments
resp |
A response from the API (status 200, type/JSON). The response should have a "data" keyword with the value of an array containing the risk free rates. |
format |
One of the output format ("data.frame" is currently the only option). |
Value
A list of class "eiopa_rfr", with at least the following components:
- data
a data.frame containing the risk-free rate curves.
- metadata
a data.frame containing metadata about the risk-free rate curves.
[Package eiopaR version 0.1.1 Index]