R/utils-house.R

Defines functions house_query_util

house_query_util <- function(house) {
  if (house == "commons") {
    house_query <- "&legislature.prefLabel=House%20of%20Commons"
  } else if (house == "lords") {
    house_query <- "&legislature.prefLabel=House%20of%20Lords"
  } else {
    house_query <- ""
  }
}

Try the hansard package in your browser

Any scripts or data that you put into this service are public.

hansard documentation built on Nov. 13, 2019, 5:06 p.m.