Description Usage Format Details Params Aggregate_Params Usage Aggregate_Usage References Examples
A class to create Summary queries to the FDIC API. Derived
from class fdic_base
.
1 |
An object of class R6ClassGenerator
of length 24.
Example filters
Filter by Community Banks (CB) vs. Savings Institutions (SI)
Filter by State name: STNAME:"Virginia"
Filter for any one of multiple State names: STNAME:("West Virginia","Delaware")
Filter data by the year range: YEAR:["2015" TO "2017"]
Filter for data in Alabama in 2005: STNAME:"Alabama" AND YEAR:2005
Example fields: STNAME,YEAR,INTINC,EINTEXP,NIM,NONII,NONIX,ELNATR,ITAXR,IGLSEC,ITAX,EXTRA,NETINC
Example sort_by: YEAR
field
one of the available query fields returned by get_available_fields
filters
the filter for the bank search.
fields
Comma delimited list of fields to search
sort_by
Field name by which to sort returned data
sort_order
Indicator if ascending (ASC) or descending (DESC)
limit
The number of records to return. Default is 10 and maximum is 10,000.
offset
The offset of page to return
agg_by
The field(s) by which data will be aggregated. Valid values are 'YEAR' or 'YEAR,STNAME'.
agg_term_fields
The field(s) for which aggregations will be counted for each unique term.
agg_sum_fields
The field(s) for which aggregations will be summed or aggregated.
agg_limit
The limit on how many aggregated results will be displayed
fdic_base$get_available_fields()
Get the fields available for queries
fdic_base$get_available_field_description(field)
Get the description of a field
fdic_base$setFilters(filters)
fdic_base$setFields(fields)
fdic_base$setSort_by(sort_by)
fdic_base$setSort_order(sort_order)
fdic_base$setLimit(limit)
fdic_base$setOffset(offset)
fdic_locations$setAgg_by(agg_by)
fdic_locations$setAgg_term_fields(agg_term_fields)
fdic_locations$setAgg_sum_fields(agg_sum_fields)
fdic_locations$setAgg_limit(agg_limit)
https://banks.data.fdic.gov/docs/
1 2 3 4 5 | if (curl::has_internet()) {
x <- fdic_summary$new()
x$get_available_fields()
x$get_available_field_description("INTINC")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.