Usa Election
usa_election.Rd2008 and 2016 Usa presidential election
Usage
data("usa_election")Format
A data frame with 51 observations on the following 19 variables.
- state_id
- a character vector 
- electoral_votes_obama
- a numeric vector 
- electoral_votes_mccain
- a numeric vector 
- votes_obama
- a numeric vector 
- votes_mccain
- a numeric vector 
- votes_others_08
- a numeric vector 
- total_votes_08
- a numeric vector 
- electoral_votes_trump
- a numeric vector 
- electoral_votes_clinton
- a numeric vector 
- votes_trump
- a numeric vector 
- votes_clinton
- a numeric vector 
- votes_others_16
- a numeric vector 
- total_votes_16
- a numeric vector 
- total_popolation_08
- a numeric vector 
- total_citizen_08
- a numeric vector 
- total_registered_08
- a numeric vector 
- total_popolation_16
- a numeric vector 
- total_citizen_16
- a numeric vector 
- total_registered_16
- a numeric vector 
Source
https://www.census.gov/topics/public-sector/voting/data.html https://www.fec.gov/introduction-campaign-finance/election-and-voting-information/
Examples
data(usa_election)
str(usa_election)
#> 'data.frame':	51 obs. of  19 variables:
#>  $ state_id               : chr  "AL" "AK" "AZ" "AR" ...
#>  $ electoral_votes_obama  : num  0 0 0 0 55 9 7 3 3 27 ...
#>  $ electoral_votes_mccain : num  9 3 10 6 0 0 0 0 0 0 ...
#>  $ votes_obama            : num  813479 123594 1034707 422310 8274473 ...
#>  $ votes_mccain           : num  1266546 193841 1230111 638017 5011781 ...
#>  $ votes_others_08        : num  19794 8762 28657 26290 275646 ...
#>  $ total_votes_08         : num  2099819 326197 2293475 1086617 13561900 ...
#>  $ electoral_votes_trump  : num  9 3 11 6 0 0 0 0 0 29 ...
#>  $ electoral_votes_clinton: num  0 0 0 0 55 9 7 3 3 0 ...
#>  $ votes_trump            : num  1318255 163387 1252401 684872 4483814 ...
#>  $ votes_clinton          : num  729547 116454 1161167 380494 8753792 ...
#>  $ votes_others_16        : num  75570 38767 159597 65310 943998 ...
#>  $ total_votes_16         : num  2123372 318608 2573165 1130676 14181604 ...
#>  $ total_popolation_08    : num  3497000 488000 4688000 2108000 26993000 ...
#>  $ total_citizen_08       : num  3404000 468000 4169000 2030000 21816000 ...
#>  $ total_registered_08    : num  2438000 345000 2874000 1317000 14885000 ...
#>  $ total_popolation_16    : num  3717000 518000 5196000 2216000 29894000 ...
#>  $ total_citizen_16       : num  3651000 502000 4585000 2116000 24890000 ...
#>  $ total_registered_16    : num  2526000 358000 3145000 1456000 16096000 ...