powered by
A function for retrieving information on Norwegian MPs from the parliament API
get_mp(mpid = NA, good_manners = 0)
A data.frame with the following variables:
Character string indicating the id of the MP to retrieve.
Integer. Seconds delay between calls when making multiple calls to the same function
get_mp_bio get_parlperiod_mps get_mp_pic get_session_mp_speech_activity
if (FALSE) { # Request one MP by id get_mp("AAMH") # Request several MPs by id ids <- c("AAMH", "AMSK", "MAAA") mps <- lapply(ids, get_mp, good_manners = 2) mps <- do.call(rbind, mps) }
Run the code above in your browser using DataLab