| getMSP {twfy} | R Documentation |
Get information on a Member of the Scottish Parliament
Description
Get information on a Member of the Scottish Parliament
Usage
getMSP(id = NULL, postcode = NULL, constituency = NULL,
always_return = NULL)
Arguments
id |
Person identifier |
postcode |
A postcode, which specifies the constituency whose MSP is required |
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 Parliament, or 9999-12-31 if still in placeentered_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