rsort.rbolaget: Sorting function for a object of class rbolaget

Description Usage Arguments Value Examples

View source: R/rsort.rbolaget.R

Description

rsort is used to sort the assortment of all product in Systembolaget given specific parameters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S3 method for class 'rbolaget'
rsort(
  data,
  Category = NULL,
  IsKosher = NULL,
  IsOrganic = NULL,
  IsEthical = NULL,
  AlcoholPercentage = list(min = NULL, max = NULL),
  Volume = list(min = NULL, max = NULL),
  Price = list(min = NULL, max = NULL),
  Country = NULL,
  ...
)

Arguments

data

an object of class rbolaget.

Category

a character with the category/categories.

IsKosher

a boolean.

IsOrganic

a boolean.

IsEthical

a boolean.

AlcoholPercentage

a numeric value given in a list with min and max value.

Volume

a numeric value given in a list with min and max value.

Price

a numeric value given in a list with min and max value.

Country

a character with the country/countries.

...

Further arguments passed to or from other methods

Value

rsort return a data frame of class "rbolaget" and "data.frame" with the given criteria given by the parameters.

Examples

1
rsort(data = rget(), Category = "Öl")

Sidryd/rbolaget documentation built on Oct. 2, 2020, 10:27 a.m.