Skip to content

Presidents terms #4702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 14, 2022
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ggplot2 (development version)

* `presidential` dataset now includes Trump's presidency (@bkmgit, #4703).

* referring to `x` in backquoted expressions with `label_bquote()` is no longer
possible.

Expand Down
7 changes: 4 additions & 3 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,13 @@
#' }
"msleep"

#' Terms of 11 presidents from Eisenhower to Obama
#' Terms of 12 presidents from Eisenhower to Trump
#'
#' The names of each president, the start and end date of their term, and
#' their party of 11 US presidents from Eisenhower to Obama.
#' their party of 12 US presidents from Eisenhower to Trump. This data is
#' in the public domain.
#'
#' @format A data frame with 11 rows and 4 variables:
#' @format A data frame with 12 rows and 4 variables:
#' \describe{
#' \item{name}{Last name of president}
#' \item{start}{Presidency start date}
Expand Down
2 changes: 1 addition & 1 deletion data-raw/presidential.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
library(readr)
presidential <- read_csv("data-raw/presidential.csv")
devtools::use_data(presidential, overwrite = TRUE)
usethis::use_data(presidential, overwrite = TRUE)
1 change: 1 addition & 0 deletions data-raw/presidential.csv
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
"Clinton",1993-01-20,2001-01-20,"Democratic"
"Bush",2001-01-20,2009-01-20,"Republican"
"Obama",2009-01-20,2017-01-20,"Democratic"
"Trump",2017-01-20,2021-01-20,"Republican"
Binary file modified data/presidential.rda
Binary file not shown.