knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(riksdagen)

Description

The function creates an API connecting to website to get the data of voting in different parties and makes some basic analysis.

Functions

riksdagen

  1. The input is a character and format is "2012/13".
  2. The range of the input is from "2020/21" to "2002/03".
  3. The return is a data.frame with some basic analysis.

runRiksShiny

  1. The function searches the riksdagen package directory to locate a folder called "ShinyApp". It then uses shiny::runApp to run the shiny app from that directory. It takes no arguments.

Usage

Install

devtools::install_github("chafu696/Lab5")

Example

users <- riksdagen("2019/20")
print(users)


chafu696/Lab5 documentation built on Dec. 31, 2020, 9:57 p.m.