Question: R USE FUNCTIONS LIKE TRANSMUTE, MUTATE, AND PIPE OPERATORS (adopted from Problem 7.3, 10.5, 10.7 in DC ebook) Download the Minneapolis2013.txt on Canvas (Files ->
R
USE FUNCTIONS LIKE TRANSMUTE, MUTATE, AND PIPE OPERATORS
(adopted from Problem 7.3, 10.5, 10.7 in DC ebook) Download the Minneapolis2013.txt on Canvas (Files -> data). Import and assign it to Minneapolis2013 . Construct a data wrangling command involving that will answer the following questions. a. (1 pts) How many unique values in the First variable? - Note: we did the same thing in Activity 4, so try to use for this time. b. (1 pts) How many cases have as their first choice? - Note: we did the same thing in Activity 4, so try to use for this time. c. (1 pts) Make a subset only containing Precinct, First, and Ward variables. Print the first three lines of the subset. d. (2 pts) Who were the top 5 candidates in the selections. e. (2 pts) How many ballots are marked in choice selections? f. (2 pts) What are the top 3 combinations of and vote selections? (That is, of all the possible ways a voter might have marked his or her first and second choices, which received the highest number of votes?) g. (2 pts) Which Precinct had the highest number of ballots cast? h. (2 pts) How many people chose the same candidate for both and place? i. (2 pts) Of the ballots where the and Second place choices are the same, what were the top 3 choices? j. (2 pts) Of the people who selected for First, what were the top three choices? k. (2 pts) Translate each of the minor candidates from the candidate's name to Let's define a minor candidate as getting fewer than 5000 first-choice votes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
