get_wine: Retrieving the best wine in the World

Description Usage Arguments Value Examples

Description

This function will allow you to retrieve the best wines according to WineEnthusiast's review (Winemag.com), given your preferences

Usage

1
2
get_wine(Data = winemag, Country = NULL, Price = NULL,
  Variety = NULL, Province = NULL, N = 10, Criteria = NULL)

Arguments

Data

A dataframe This is the dataframe that is used to retrieve the wines. It should be the data: winemag_data_130k_v2.

Country

A character This is the name of the country/countries of interest.

Price

A numeric vector This is a vector containing the minimum and the maximum values of the price.

Variety

A character This is the name of the variety/varieties of interest.

Province

A character This is the name of the province/provinces of interest.

N

A integer This is the number of wines returned by the function. This number should be a positive integer.

Criteria

A character The variable used to rank the wines. It can take the following values: "price", "ascending price", "quality", "price & quality", "ascending price & quality" or "quality/price".

Value

A tibble displaying the top N wines according to the specified criterion.

Examples

1
2
get_wine())
get_wine(Country = "Italy")

VanessaArmistead/ptdsProjectG3 documentation built on May 17, 2019, 9:59 a.m.