Skip to content

Commit 86dd86a

Browse files
authored
Add Trump to presidential terms dataset (#4702)
Fixes #4703
1 parent 994e401 commit 86dd86a

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ggplot2 (development version)
22

3+
* `presidential` dataset now includes Trump's presidency (@bkmgit, #4703).
4+
35
* referring to `x` in backquoted expressions with `label_bquote()` is no longer
46
possible.
57

R/data.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,13 @@
140140
#' }
141141
"msleep"
142142

143-
#' Terms of 11 presidents from Eisenhower to Obama
143+
#' Terms of 12 presidents from Eisenhower to Trump
144144
#'
145145
#' The names of each president, the start and end date of their term, and
146-
#' their party of 11 US presidents from Eisenhower to Obama.
146+
#' their party of 12 US presidents from Eisenhower to Trump. This data is
147+
#' in the public domain.
147148
#'
148-
#' @format A data frame with 11 rows and 4 variables:
149+
#' @format A data frame with 12 rows and 4 variables:
149150
#' \describe{
150151
#' \item{name}{Last name of president}
151152
#' \item{start}{Presidency start date}

data-raw/presidential.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
library(readr)
22
presidential <- read_csv("data-raw/presidential.csv")
3-
devtools::use_data(presidential, overwrite = TRUE)
3+
usethis::use_data(presidential, overwrite = TRUE)

data-raw/presidential.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
"Clinton",1993-01-20,2001-01-20,"Democratic"
1111
"Bush",2001-01-20,2009-01-20,"Republican"
1212
"Obama",2009-01-20,2017-01-20,"Democratic"
13+
"Trump",2017-01-20,2021-01-20,"Republican"

data/presidential.rda

180 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)