Learn R Programming

hansard (version 0.3.4)

commons_oral_questions: commons_oral_questions

Description

Imports data on House of Commons oral questions

Usage

commons_oral_questions(comsOralType = c("all", "times", "daysTabled", "daysAnswered", "askedBy", "session", "department"))

Arguments

comsOralType
The type of data you want, allows the arguments 'all', 'times', 'daysTabled', 'daysAnswered', 'askedBy' and 'session'
all
Imports all available oral questions
times
Imports the times of all available oral questions
daysTabled
Requests two dates, and returns a data frame with all oral questions asked between those two dates
daysAnswered
Requests two dates, and returns a data frame with all oral questions answered between those two dates
askedBy
Requests a member ID and returns a data frame with all oral questions asked by that member
session
Requests a session ID and returns a data frame with all oral questions asked in that session
department
Requests a Requests a department name, and returns all oral questions answered by that department. The query acts as a search, so entering will return all questions answered by the Department of Health

Examples

Run this code
## Not run: 
# x <- commons_oral_questions('all')
# 
# x <- commons_oral_questions('times')
# 
# x <- commons_oral_questions('daysTabled')
# 
# x <- commons_oral_questions('daysAnswered')
# 
# x <- commons_oral_questions('askedBy')
# 
# x <- commons_oral_questions('session')
# 
# x <- commons_oral_questions('department')
# 
# ## End(Not run)

Run the code above in your browser using DataLab