getSummary {fdicdata} | R Documentation |
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)
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 |
Value
a data frame with summary data for the given states, years, and fields
Examples
df <- getSummary(c("West Virginia", "Delaware", "Alabama"), c(2015, 2016), c("ASSET", "INTINC"))
[Package fdicdata version 0.1.0 Index]