Quick Question
Using the table function in R, please answer the following questions about the dataset “movies”.
How many movies are classified as comedies?
Exercise 1
Numerical Response
How many movies are classified as westerns?
Exercise 2
Numerical Response
How many movies are classified as romance AND drama?
Exercise 3
Numerical Response
Explanation
You can answer these questions by using the following commands:
table(movies$Comedy)
table(movies$Western)
table(movies$Romance, movies$Drama)
CheckShow Answer