Week 3
This week is about comparing Election poll Results. To start with arranging the 3 variables into a data frame provides us with this.
Name ABC_poll_results CBS_poll_results
1 Jeb 4 12
2 Donald 62 75
3 Ted 51 43
4 Marco 21 19
5 Carly 2 1
6 Hillary 14 21
7 Berine 15 19
We can look at the differences between the two polls.
Name ABC_poll_results CBS_poll_results Difference
1 Jeb 4 12 -8
2 Donald 62 75 -13
3 Ted 51 43 8
4 Marco 21 19 2
5 Carly 2 1 1
6 Hillary 14 21 -7
7 Berine 15 19 -4
We can also clearly see Donald leads both polls without code in this poll and Carly has next to no votes.
I made a graph to show visually the amount of votes each candidate got in each
poll.
Comments
Post a Comment