getFailures {fdicdata} | R Documentation |
Get information on bank failures from FDIC data
Description
This function retrieves information on bank failures from the FDIC data API, using the specified fields and (optional) date range. If a date range is specified, only failures within that range will be included.
Usage
getFailures(fields, range = NULL, limit = 10000)
Arguments
fields |
a character vector specifying the fields to include in the output.
|
range |
a numeric vector of length 2 specifying the start and end dates (in YYYY format) for the date range to include. If not specified, all failures will be included. |
limit |
an integer specifying the maximum number of results to return. Defaults to 10,000. |
Value
a data frame containing the requested fields for each bank failure within the specified date range (if applicable).
Examples
df <- getFailures(c("CERT", "NAME", "FAILDATE", "CITY", "STATE"), range = c(2010, 2015))
head(df)