6.2 Recommendations Worth a Million: An Introduction to Clustering

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

How many movies are classified as westerns?

Exercise 2

How many movies are classified as romance AND drama?

Exercise 3

Explanation

You can answer these questions by using the following commands:

table(movies$Comedy)

table(movies$Western)

table(movies$Romance, movies$Drama)