# Get entire 'Traffic' table for the Scottish Parliament
sco_traffic <- get_traffic(legislature = "sco")
tibble::glimpse(sco_traffic)
# Add Wikidataid to 'Traffic' table for the Scottish Parliament
sco_traffic_subset <- dplyr::inner_join(x = dplyr::select(get_core(legislature = "sco"),
pageid, wikidataid),
y = sco_traffic,
by = "pageid")
tibble::glimpse(sco_traffic_subset)
Run the code above in your browser using DataLab