fdic_summary | R Documentation |
A class to create Summary queries to the FDIC API. Derived
from class fdic_base
.
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
an object of type fdic_sod
an object containing metadata and a data.frame
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)
fdic.api::fdic_base
-> fdic_summary
fdic.api::fdic_base$fdic_api()
fdic.api::fdic_base$get_available_field_description()
fdic.api::fdic_base$get_available_fields()
fdic.api::fdic_base$parse_yaml()
fdic.api::fdic_base$setFields()
fdic.api::fdic_base$setFilters()
fdic.api::fdic_base$setLimit()
fdic.api::fdic_base$setOffset()
fdic.api::fdic_base$setSort_by()
fdic.api::fdic_base$setSort_order()
new()
Initialization Method
fdic_summary$new()
query_fdic()
Query FDIC API
fdic_summary$query_fdic()
setAgg_by()
Field by which the data will be aggregated
fdic_summary$setAgg_by(agg_by)
agg_by
field to aggregate by
setAgg_term_fields()
Fields for which aggregations will be counted
fdic_summary$setAgg_term_fields(agg_term_fields)
agg_term_fields
field to aggregate by
setAgg_sum_fields()
Fields for which aggregations will be summed
fdic_summary$setAgg_sum_fields(agg_sum_fields)
agg_sum_fields
field to aggregate by
setAgg_limit()
limit on how many aggregated fields will be displayed
fdic_summary$setAgg_limit(agg_limit)
agg_limit
aggregation limits
setMax_value()
the field by which the max value is desired
fdic_summary$setMax_value(max_value)
max_value
the max value field.
setMax_value_by()
the field that will be used to determine the unique records
fdic_summary$setMax_value_by(max_value_by)
max_value_by
the max value field.
clone()
The objects of this class are cloneable with this method.
fdic_summary$clone(deep = FALSE)
deep
Whether to make a deep clone.
https://banks.data.fdic.gov/docs/
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.