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.
getFailures(fields, range = NULL, limit = 10000)
a data frame containing the requested fields for each bank failure within the specified date range (if applicable).
a character vector specifying the fields to include in the output.
The name of the failed bank
The FDIC certificate number of the failed bank
The failed bank's unique financial institution identifier
The city and state where the failed bank was located
The date of the bank failure
The year of the bank failure
Whether the failed bank was a savings and loan association
The type of failed institution
A more specific classification of the failed institution
The bank's charter class
The amount of deposits held by the bank at the time of failure
The total assets held by the bank at the time of failure
The estimated cost to the FDIC of the bank's failure
The FDIC's estimated percentage of insured deposits paid to depositors
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.
an integer specifying the maximum number of results to return. Defaults to 10,000.
df <- getFailures(c("CERT", "NAME", "FAILDATE", "CITY", "STATE"), range = c(2010, 2015))
head(df)
Run the code above in your browser using DataLab