15.071 | Spring 2017 | Graduate

The Analytics Edge

6.2 Recommendations Worth a Million: An Introduction to Clustering

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

 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

 

Course Info

As Taught In
Spring 2017
Level
Learning Resource Types
Lecture Videos
Lecture Notes
Problem Sets with Solutions