getpres: Get US President by Date

Description Usage Arguments Details Examples

View source: R/getpres.R

Description

Get the name of US president on a given date starting with Harry Truman.

Usage

1
getpres(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 US president who was in office at that time.

Examples

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

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