Learn R Programming

filibustr (version 0.3.0)

congress_in_year: Calculate the Congress number of a given year

Description

This function gives the number of the Congress for a specified calendar year.

Usage

congress_in_year(year)

Value

A positive whole number.

Arguments

year

Either a number or a Date object. Cannot be earlier than 1789, the year of the first Congress.

Details

A new Congress begins in every odd-numbered year, starting in 1789. For example, 2021-2022 was the 117th Congress.

Examples

Run this code
congress_in_year(1800)
congress_in_year(2022)

Run the code above in your browser using DataLab