| 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_idMember identifier for each spell in parliamenthouse1: House of Commons, 2: House of Lords, 3: Legislative Assembly (NI), 4: Scottish ParliamentconstituencyConstituency representedpartyPartyentered_houseDate MP entered Parliamentleft_houseDate MP left Parliamententered_reasonReason MP entered, e.g. general_electionleft_reasonReason MP left, e.g. general_election_standingperson_idPerson identifierlastupdateWhen TheyWorkForYou last updated this informationtitleTitle, if anygiven_nameFirst namefamily_nameFamily namefull_nameFirst name and family nameurlURL path relative to TheyWorkForYou's hostnameimageURL path to jpg relative to TheyWorkForYou's hostnameimage_heightImage height in pixelsimage_widthImage width in pixels