This vignette shows the functionality of functions within the rbolaget
package. The functions are S3-objects.
library(rbolaget) # Download data from Systembolaget API data <- rget()
This shows a example of sorting on multiple parameters at the same time.
# Filter data data_sorted <- rsort(data = data, Category = "Öl", AlcoholPercentage = list(min = 4, max = 6)) # Showcase the first six observation and first six columns knitr::kable(head(data_sorted[,1:6]))
It is possible to sort data in steps.
# Filter filtered data data_sorted <- rsort(data = data, Category = "Öl") data_sorted <- rsort(data = data_sorted, AlcoholPercentage = list(min = 4, max = 6)) # Showcase the first six observation and first six columns knitr::kable(head(data_sorted[,1:6]))
To access the built Shiny-application for this package run the code below. In the app it is possible to copy the used rsort-code ("Kopiera rsort kod").
# 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.