fetch_memberships_from_url: Fetch data on members of a given committee as a tibble using...

Description Usage Arguments

View source: R/memberships.R

Description

fetch_memberships_from_url fetches data on the members of a given committee from a Members endpoint URL and returns it as a tibble containing one row per committee membership. This internal function allows generic handling of requests for this data to the Members endpoint with different URL parameters.

Usage

1
2
3
4
5
6
fetch_memberships_from_url(
  committee_id,
  url,
  summary = TRUE,
  fetch_name = TRUE
)

Arguments

committee_id

An integer representing the id of the committee for which to fetch members.

url

A valid URL requesting data for the given committee id from the Memberships endpoint.

summary

A boolean indicating whether to exclude nested and empty columns in the results. The default is TRUE.

fetch_name

A boolean indicating whether to add the committee name by making an extra call to the API. The default is TRUE.


houseofcommonslibrary/clcommittees documentation built on Dec. 14, 2020, 6:14 a.m.