Skip to content

Commit 9a4498d

Browse files
authored
Add files via upload
1 parent bf76da3 commit 9a4498d

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

R/data-voter_count.R

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#' US Voter Turnout Data.
2+
#'
3+
#' State-level data on federal elections held in November
4+
#' between 1980 and 2014.
5+
#'
6+
#' @format A data frame with 936 rows and 7 variables.
7+
#' \describe{
8+
#' \item{year}{Year election was held.}
9+
#' \item{region}{Specifies if data is state or national total.}
10+
#' \item{voting_eligible_population}{Number of citizens eligible to vote; does not count felons.}
11+
#' \item{total_ballots_counted}{Number of ballots cast.}
12+
#' \item{highest_office}{Number of ballots that contained a vote for the highest office of that election.}
13+
#' \item{percent_total_ballots_counted}{Overall voter turnout percentage.}
14+
#' \item{percent_highest_office}{Highest office voter turnout percentage.}
15+
#' }
16+
#'
17+
#' @examples
18+
#'
19+
#' library(ggplot2)
20+
#'
21+
#' ggplot(voter_count,
22+
#' aes(percent_highest_office, percent_total_ballots_counted))+
23+
#' geom_point()+
24+
#' labs(title = "Total Ballots V Highest Office",
25+
#' x = "Highest Office",
26+
#' y = "Total Ballots")
27+
#'
28+
#' @source
29+
#' \href{http://www.electproject.org/home/voter-turnout/voter-turnout-data}{United States Election Project}
30+
#'
31+
"voter_count"

0 commit comments

Comments
 (0)