Learn R Programming

fdicdata (version 0.1.1)

getSummary: Get Summary Data from FDIC API

Description

This function retrieves summary data from the FDIC API based on given state names, a range of years, and specified fields. The returned data frame includes columns for state name, year, CB_SI, and the specified fields.

Usage

getSummary(states, range, fields, limit = 10000)

Value

a data frame with summary data for the given states, years, and fields

Arguments

states

a character vector of state names to filter by

range

a numeric vector of length two representing the beginning and ending years to filter by. If NULL, no year filtering will occur.

fields

a character vector of field names to include in the output data frame

limit

an integer specifying the maximum number of rows to retrieve from the API

Examples

Run this code
df <- getSummary(c("West Virginia", "Delaware", "Alabama"), c(2015, 2016), c("ASSET", "INTINC"))

Run the code above in your browser using DataLab