R Programming Journal Module 3 - Wesley Huang
- Wesley Huang
- Feb 2
- 1 min read
In this assignment, I created a small made up dataset showing 2016 election poll results for several candidates from two sources, ABC and CBS. After placing the values into a data frame, I compared how the two polling sources differed for each candidate. Since the data is fictional, my goal was not to reflect real history, but to practice organizing, analyzing, and interpreting numeric data in R.
When I compared the results, CBS was generally higher than ABC for most candidates. I calculated the difference by subtracting ABC from CBS for each candidate, which made it easy to see where the largest gaps were. The biggest difference shows the candidate where the two sources disagree the most in this dataset. I also used a bar chart to visually compare ABC vs CBS side by side, which made the differences easier to interpret than just reading the numbers in a table.
The bar chart below visually compares the ABC and CBS poll results for each candidate using the fictional dataset.




Comments