parl.questions: Scrap data on questions in the Storting

Description Usage Arguments Details Value Examples

View source: R/parl.questions.R

Description

A function to collect all questions asked by MPs to ministers in the Storting from 1996-1997.

Usage

1

Arguments

url

String specifying one of the pages for the session to gather the questions from

nPages

Integer specifying how many pages of questions the relevant session has (20 questions per page)

Details

Each session must be run seperately. All sessions can be combined together with rbind.

Value

Returns a data frame with one row for each question

Examples

1
2
3
4
5
6
7
url1314 <- "https://www.stortinget.no/no/Saker-og-publikasjoner/Sporsmal/Sporretimesporsmal/?pid=2013-2014&qtid=all&qsqid=all&page=1#list"
quest1314 <- parl.questions(url1314, nPages = 21)
quest1314$session <- "2013-2014"

url1415 <- "https://www.stortinget.no/no/Saker-og-publikasjoner/Sporsmal/Sporretimesporsmal/?pid=2014-2015&qtid=all&qsqid=all&page=1#list"
quest1415 <- parl.questions(url1415, nPages = 19)
quest1415$session <- "2014-2015"

martigso/stortingAlpha documentation built on May 21, 2019, 12:37 p.m.