general_function: Obtain consumer complaint information in a flexible search

Description Usage Arguments Details Value Author(s) Examples

View source: R/general_function.R

Description

It displays all associated datapoint(s) depending on what was specified by the user. The user has varying options to specify what kind of complaint the user wants. The output is a single dataframe that contains all the relevant datapoints.

Usage

1
2
3
general_function(company = "BANK OF AMERICA, NATIONAL ASSOCIATION",
  product = "Checking or savings account",
  issue = "Managing an account", limit = 10)

Arguments

company

A character input from the user to specify a company name. Defaults to Bank of America.

product

A character input from the user to specify a product category. Defaults to checking or savings account category.

issue

A character input from the user to specify an issue category. Defaults to managing an account.

limit

A integer input from the user to limit the number of results. Defaults to 10.

Details

The function will take the input parameters from the user, and the input paramters need to be correctly matched with how it is recorded in the database, unlike other functions in this package.

Value

a dataframe of the chosen parameters

Author(s)

Jae Woong Ham

Examples

1

JaeWHam/WorkSample documentation built on Feb. 18, 2020, 12:26 a.m.