powered by
A function for retrieving topic keys used to label various data from the Norwegian parliament.
get_topics(keep_sub_topics = TRUE)
A list with two elements:
$topics (All topics)
$main_topics (exclusively main topics, if keep_sub_topics = TRUE)
Logical. Whether to keep sub-topics (default) for all main topics or not.
# Request the data tops <- get_topics() # Look at the first main topic tops$main_topics[1, ] # Extract all sub-topics for the first main topic tops$topics[which(tops$topics$main_topic_id == 5), ]
Run the code above in your browser using DataLab