Learn R Programming

hansard (version 0.3.4)

lords_written_questions: lords_written_questions

Description

Imports data on House of Lords written questions

Usage

lords_written_questions(lordsWritType = c("all", "department", "dates"))

Arguments

lordsWritType
The type of data you want, allows the arguments 'all', 'department' and 'dates'
all
Returns a data frame all written questions from the house of lords
department
Requests a department, and then returns a data frame with all written questions answered by that department
dates
Requests two dates, and returns a data frame with all available written questions from between the two given dates

Examples

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

Run the code above in your browser using DataLab