parse_rfr: Parse the risk free rates API response

Description Usage Arguments Value

View source: R/eiopaR.R

Description

This function is used to parse data received from the API to various formats.

Usage

1

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.


eiopaR documentation built on May 31, 2021, 9:10 a.m.