Module #3

 1/28/2024


For this module I created a data frame based on the 2016 election results:

election <- data.frame(

  Name = c("Jeb", "Donald", "Ted", "Marco", "Carly", "Hillary", "Bernie"),

  ABC_Poll_Results = c(4, 62, 51, 21, 2, 14, 15),

  CBS_Poll_Results = c(12, 75, 43, 19, 1, 21, 19)

)


These were my results:

> print(election)
     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  Bernie               15               19


Donald is the clear winner in both polls, scoring 62 and 75 respectively. Second comes Ted with 51 and 43. 

Comments

Popular posts from this blog

Module #11 Assignment

Module #7 Assignment

Module #9