A tool for downloading data from Systembolaget API, complemented with a sorting function. The main sorting function is rsort()
which can be used interactivly with a Shiny-app. The Shiny-app have the posibility to copy the applied rsort()
-code.
Created by Jacob Welander :email: and Sidney Rydström :email: as lab 5 in the course 732A94 Advanced Programming in R, autumn 2020.
# Default
devtools::install_github("sidryd/rbolaget")
# With vignette
devtools::install_github("sidryd/rbolaget", build_vignettes = TRUE)
library(rbolaget)
# To view vignette
vignette("rbolaget")
# Download data from Systembolaget API
data <- rget()
# Filter data with rsort(), e.g.
rsort(data = data, Category = "Öl")
# Filter data interactively with a Shiny-app.
shiny::runGitHub(repo = "rbolagetshiny", username = "WelanderJacob")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.