Some students in introductory statistics courses were asked to select a number between 1 and 30 (inclusive). The results are in the number variable in the little Survey data set.
a) Make a table showing the frequency with which each number was selected using table().
b) Make a histogram of these values with bins centered at the integers from 1 to 30.
c) What numbers were most frequently chosen? Can you get R to find them for you?
d) What numbers were least frequently chosen? Can you get R to find them for you?
e) Make a table showing how many students selected odd versus even numbers.