LIS 4370 - Module #3 Data Frame
Module #3 Data Frame The dataset showed hypothetical results of the 2016 Presidential campaign. The dataset provided had a couple of mistakes that resulted in errors. Original Code: > Name <- c("Jeb", “Donald”, "Ted”, “Marco” “Carly”, “Hillary”, “Berine”) > ABC political poll results <- c(4, 62 51, 21, 2, 14, 15) > CBS political poll results <- c(12, 75, 43, 19, 1, 21, 19) There are missing commas in the "Name" vector, as well as in the "ABC political poll results" vector. Additionally, the names of the results vectors were not underscored, therefore they could not be interpreted in R. For the values to be interpreted, the code should look as follows: Modified Code: > Name <- c("Jeb", "Donald", "Ted", "Marco", "Carly", "Hillary", "Bernie") > ABC_political_poll_results <- c(4, 62, 51, 21, 2, 14, 15) > CBS_political_poll_results <- c(12, 75, 43,...