find_styles: Find Beer Styles.

Description Usage Arguments Value

View source: R/find_styles.R

Description

Find Beer Styles.

Usage

1
2
find_styles(api_key, style_id = NULL, style_name = NULL,
  category_id = NULL, category_name = NULL, data_frame = TRUE)

Arguments

api_key

a charater string containing a BreweryDB API key. See http://www.brewerydb.com/developers to obtain an API key.

style_id

a character string providing the BreweryDB ID of a specific beer style.

style_name

a character string providing the name of specific beer style.

category_id

a character string providing the BreweryDB ID of a specific beer category.

category_name

a charater string providing the name of a specific beer category.

data_frame

a logical argument indicating if the function should return a data frame. Defaults to TRUE.

Value

By default the function returns a data frame. If data_frame = FALSE the function returns a list of responses - 1 for each page of results - created by GET


warlicks/beeR documentation built on May 28, 2019, 7:53 a.m.