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('all').
members_search(search = NULL, tidy = TRUE, tidy_style = "snake_case")hansard_members_search(search = NULL, tidy = TRUE,
tidy_style = "snake_case")
Accepts any string. Defaults to NULL. If NULL, returns a tibble with all members of both houses of parliament.
Fix the variable names in the tibble to remove extra characters, superfluous text and convert variable names to snake_case. For the `members_search` function it also changes the '_about' column name to 'mnis_id' (or 'mnisId' or 'mnis.id', depending on the value of the `tidy_text` parameter, and removes the URL to preserve only the numerical ID. Defaults to TRUE.
The style to convert variable names to, if tidy = TRUE. Accepts one of 'snake_case', 'camelCase' and 'period.case'. Defaults to 'snake_case'.
A tibble with the results of the search.
# NOT RUN {
x <- members_search('chris')
x <- members_search(search='chris')
# }
Run the code above in your browser using DataLab