Module # 3 data.frame
Module # 3 Right now, you can’t really summarize the poll results because R never actually created the dataset, the code has syntax errors that stop it from running. Before we can make any sense of the results, we need to fix the code just enough so R can read the candidate names and the poll percentages. Once the dataset exists in R, we can start comparing the ABC and CBS results, see which candidates are leading, and notice any differences between the polls. Rewritten to compare result: After running the corrected code, we can see the poll results for each candidate side by side. Donald is clearly the frontrunner in both ABC and CBS polls, while Ted also has strong support but with some differences between the two sources. Candidates like Marco, Hillary, and Bernie have moderate numbers, and Carly and Jeb are at the bottom. Even though the polls aren’t exactly the same, they tell a pretty similar story about who’s more popular.