Code
%>%
US_presidents if (is_html_output()) print_table(.) else .} {
name | start | end | party |
---|---|---|---|
Wilson | 1913-03-04 | 1921-03-04 | Democratic |
Roosevelt | 1921-03-04 | 1923-08-02 | Republican |
Truman | 1923-08-02 | 1929-03-04 | Republican |
Hoover | 1929-03-04 | 1933-03-04 | Republican |
Roosevelt | 1933-03-04 | 1945-04-12 | Democratic |
Truman | 1945-04-12 | 1953-01-20 | Democratic |
Eisenhower | 1953-01-20 | 1961-01-20 | Republican |
Kennedy | 1961-01-20 | 1963-11-22 | Democratic |
Johnson | 1963-11-22 | 1969-01-20 | Democratic |
Nixon | 1969-01-20 | 1974-08-09 | Republican |
Ford | 1974-08-09 | 1977-01-20 | Republican |
Carter | 1977-01-20 | 1981-01-20 | Democratic |
Reagan | 1981-01-20 | 1989-01-20 | Republican |
Bush I | 1989-01-20 | 1993-01-20 | Republican |
Clinton | 1993-01-20 | 2001-01-20 | Democratic |
Bush II | 2001-01-20 | 2009-01-20 | Republican |
Obama | 2009-01-20 | 2017-01-20 | Democratic |
Trump | 2017-01-20 | 2021-01-20 | Republican |
Biden | 2021-01-20 | 2025-04-01 | Democratic |