Learn R Programming

hansard (version 0.3.4)

mp_questions: mp_questions

Description

Accepts an ID number for a member of the House of Commons, and returns a data frame of of all their oral and written questions.

Usage

mp_questions(mp.id, questionType = c("all", "oral", "written"))

Arguments

mp.id
The ID number of a member of the House of Commons.
questionType
Accepts the arguments 'all', 'oral' and 'written'. Defaults to 'all'.
all
Returns a data frame with all recorded questions for a given member of the house of commons.
oral
Returns a data frame with all oral questions asked by a given MP.
written
Returns a data frame with all written questions asked by a given MP.

Examples

Run this code
## Not run: 
# x <- mp_questions(172, 'all')
# ## End(Not run)

Run the code above in your browser using DataLab