R/data-midterms_house.R

#' President's party performance and unemployment rate
#'
#' Covers midterm elections.
#'
#' An older version of this data is at \code{\link{unemploy_pres}}.
#'
#' @name midterms_house
#' @docType data
#' @format A data frame with 29 observations on the following 5 variables.
#' \describe{
#'   \item{year}{Year.}
#'   \item{potus}{The president in office.}
#'   \item{party}{President's party: Democrat or Republican.}
#'   \item{unemp}{Unemployment rate.}
#'   \item{house_change}{Change in House seats for the President's party.}
#'   }
#' @source Wikipedia.
#' @keywords datasets
#' @examples
#'
#' library(ggplot2)
#'
#' ggplot(midterms_house, aes(x = unemp, y = house_change)) +
#'   geom_point()
"midterms_house"
OpenIntroStat/openintro-r-package documentation built on Nov. 19, 2023, 4:58 p.m.