Learn R Programming

hansard (version 0.3.4)

commons_answered_questions: commons_answered_questions

Description

Imports data on House of Commons answered questions

Usage

commons_answered_questions(comsAnsType = c("all", "date", "department", "answeredBy"))

Arguments

comsAnsType
The type of data you want, allows the arguments 'all', 'date', 'department', 'answeredBy', 'recent'
all
Returns a data frame with all answered questions in the House of Commons
date
Returns a data frame with all answered questions in the House of Commons on the given date
department
Returns a data frame with all answered questions in the House of Commons from the given department
answeredBy
Returns a data frame with all answered questions in the House of Commons by the given MP

Examples

Run this code
## Not run: 
# x <- commons_answered_questions('all')
# 
# x <- commons_answered_questions('date')
# 
# x <- commons_answered_questions('department')
# 
# x <- commons_answered_questions('answeredBy')
# ## End(Not run)

Run the code above in your browser using DataLab