This function scrapes the openFDA API for food product recall enforcement reports based on user inputs of location
Source:R/recall_location.R
recall_location.Rd
This function scrapes the openFDA API for food product recall enforcement reports based on user inputs of location
Usage
recall_location(
api_key,
limit = NULL,
city = NULL,
country = NULL,
distribution_pattern = NULL,
recalling_firm = NULL,
search_mode = NULL,
state = NULL,
status = NULL
)
Arguments
- api_key
Your free api key from openFDA API website
- limit
The number of rows to return for that query
- city
City where food company is located
- country
The country where the food was produced
- distribution_pattern
Locations where food was distributed to
- recalling_firm
The company recalling the product
- search_mode
This gives the user flexibility to search for exact matches of inputs or any combination of inputs
- state
The U.S. state in which the recalling firm is located
- status
The status of the recall
Examples
if (FALSE) { # \dontrun{
recall_location(api_key = api_key, city = "Ames", state = "Iowa")
recall_location(api_key = api_key, recalling_firm = "Target")
recall_location(api_key = api_key, distribution_pattern = "Colorado", status = "Ongoing")
recall_location(api_key = api_key, city = "Iowa City, Ames, Des Moines", state = "Iowa")
} # }