getFailures | R Documentation |
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)
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. |
a data frame containing the requested fields for each bank failure within the specified date range (if applicable).
df <- getFailures(c("CERT", "NAME", "FAILDATE", "CITY", "STATE"), range = c(2010, 2015))
head(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.