getMP {twfy} | R Documentation |
Get information about a Member of Parliament
Description
Returns
Usage
getMP(id = NULL, postcode = NULL, constituency = NULL,
always_return = NULL)
Arguments
id |
An MP identifier |
postcode |
A postcode, used to identify a constituency and thereby an MP |
constituency |
Name of a constituency |
always_return |
whether to try to return an MP even if the seat is vacant or it before an election |
Value
a data.frame with rows representing the MP's spells in Parliament and columns
member_id
Member identifier for each spell in parliamenthouse
1: House of Commons, 2: House of Lords, 3: Legislative Assembly (NI), 4: Scottish Parliamentconstituency
Constituency representedparty
Partyentered_house
Date MP entered Parliamentleft_house
Date MP left Parliamententered_reason
Reason MP entered, e.g. general_electionleft_reason
Reason MP left, e.g. general_election_standingperson_id
Person identifierlastupdate
When TheyWorkForYou last updated this informationtitle
Title, if anygiven_name
First namefamily_name
Family namefull_name
First name and family nameurl
URL path relative to TheyWorkForYou's hostnameimage
URL path to jpg relative to TheyWorkForYou's hostnameimage_height
Image height in pixelsimage_width
Image width in pixels