parse_rfr_to_df {eiopaR} | R Documentation |
Parse the risk free rates API response into a dataframe
Description
This function is used to parse data received from the API into data.frame.
Usage
parse_rfr_to_df(resp)
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. |
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]