Learn R Programming

hansard (version 0.3.4)

commons_written_questions: commons_written_questions

Description

Imports data on House of Commons written questions

Usage

commons_written_questions(comsWritType = c("all", "department", "dates", "askedBy"))

Arguments

comsWritType
The type of data you want, allows the arguments 'all', 'department', 'dates' and 'askedBy'
all
Returns a data frame with all written questions
department
Requests a department name, and returns all written questions by department. The query acts as a search, so entering will return all questions answered by the Department of Health
dates
Requests two dates and imports a data frame with all available written questions from between the two dates.
askedBy
Requests a member ID and returns a data frame with all written questions asked by that member

Examples

Run this code
## Not run: 
# x <- commons_written_questions('all')
# 
# x <- commons_written_questions('department')
# 
# x <- commons_written_questions('dates')
# 
# x <- commons_written_questions('askedBy')
# ## End(Not run)

Run the code above in your browser using DataLab