# Get entire 'Offices' table for the United States Senate
usa_offices <- get_office(legislature = "usa_senate")
tibble::glimpse(usa_offices)
# Get 'Offices' table for male members of the United States Senate
usa_offices_subset <- dplyr::semi_join(x = usa_offices,
y = dplyr::filter(get_core(legislature = "usa_senate"),
sex == "female"),
by = "wikidataid")
tibble::glimpse(usa_offices_subset)
Run the code above in your browser using DataLab