Learn R Programming

hansard (version 0.3.4)

members_search: members_search

Description

Search for an MP or Lord by name and constituency

Usage

members_search(Search = NULL)

Arguments

Search
Accepts any string. Defaults to NULL.

Details

Function searches for the string and returns a data frame 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 data frame of all members of both houses, the same result as members('all').

Examples

Run this code
## Not run: 
# 
# x <- members_search('chris')
# 
# x <- members_search(Search='chris')
# ## End(Not run)

Run the code above in your browser using DataLab