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_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 Parliament, or 9999-12-31 if still in placeentered_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