members_search {hansard} | R Documentation |
Search for an MP or Peer by name and constituency
Description
Note that there are problems with the remote endpoint for this API, and that correct search queries may not return any results.
Usage
members_search(search = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
hansard_members_search(search = NULL, tidy = TRUE,
tidy_style = "snake", verbose = TRUE)
Arguments
search |
Accepts any lucene query string, using * as a multiple
character wildcard, and ? as the single character wildcard. Searchs are
not case sensitive. If |
tidy |
Logical parameter. If |
tidy_style |
The style to convert variable names to, if
|
verbose |
If |
Details
Function searches for the string and returns a tibble with all matches from
both houses of parliament. Returns all partial matches in the members'
names, constituencies, twitter handle and webpage. The default search is
NULL
, which returns a tibble of all members of both houses, the
same result as members()
.
Value
A tibble with the results of the search.
See Also
Examples
## Not run:
x <- members_search("*chris*")
x <- members_search(search = "*chris*")
## End(Not run)