Learn R Programming

fdicdata (version 0.1.1)

getFinancials: Get financial data for a given institution

Description

This function retrieves financial data for a given institution from the FDIC API.

Usage

getFinancials(IDRSSD_or_CERT, metrics, limit = 1, IDRSSD = TRUE, range = NULL)

Value

A dataframe containing the requested financial data.

Arguments

IDRSSD_or_CERT

Numeric value indicating the IDRSSD or CERT number of the institution to retrieve data for.

metrics

Vector of metric names to retrieve financial data for.

limit

Number of records to retrieve.

IDRSSD

Boolean value indicating whether IDRSSD (True) or CERT number (False) is used.

range

Character vector contains start and end date for range. Open ended ranges can be expressed using a "*"

Examples

Run this code
getFinancials(37, metrics = c("ASSET", "DEP"),limit = 10, range = c("2015-01-01","*"))
getFinancials(37, metrics = c("ASSET", "DEP"),limit = 10, range = c("2015-01-01","2016-01-01"))

Run the code above in your browser using DataLab