fetch_lords: Fetch key details for all Lords

View source: R/lords.R

fetch_lordsR Documentation

Fetch key details for all Lords

Description

fetch_lords fetches data from the Members Names platform showing key details about each Lord, with one row per Lord.

Usage

fetch_lords(from_date = NA, to_date = NA, on_date = NA)

Arguments

from_date

A string or Date representing a date. If a string is used it should specify the date in ISO 8601 date format e.g. '2000-12-31'. The default value is NA, which means no records are excluded on the basis of the from_date.

to_date

A string or Date representing a date. If a string is used it should specify the date in ISO 8601 date format e.g. '2000-12-31'. The default value is NA, which means no records are excluded on the basis of the to_date.

on_date

A string or Date representing a date. If a string is used it should specify the date in ISO 8601 date format e.g. '2000-12-31'. The default value is NA, which means no records are excluded on the basis of the on_date.

Details

The from_date and to_date arguments can be used to filter Lords returned based on the dates of their Lords memberships. The on_date argument is a convenience that sets the from_date and to_date to the same given date. The on_date has priority: if the on_date is set, the from_date and to_date are ignored.

The filtering is inclusive: a Lord is returned if any part of one of their Lords memberships falls within the period specified with the from and to dates.

Value

A tibble of key details for each Lord, with one row per Lord.


houseofcommonslibrary/clmnis documentation built on Aug. 17, 2024, 9:31 p.m.