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