getparty: Get US President's Polical Party by Date

Description Usage Arguments Details Examples

View source: R/getpres.R

Description

Get the US president's on a given date starting with Harry Truman (D) on 1945-04-12.

Usage

1
getparty(thedate)

Arguments

thedate

Any date on or after 1945-04-12 as an R Date object.

Details

Input a date object on or after 1945-04-12 and get the name of the political party of the US president who was in office at that time.

Examples

1
getparty(as.Date("2000-01-01"))

smach/rmiscutils documentation built on Dec. 15, 2021, 1:49 a.m.