Get startedGet started for free

Setting keys

The netflix and imdb data.tables are available in your workspace. Your goal is to set the keys for both data.tables so that you can perform a series of joins without needing to specify the join keys each time.

This exercise is part of the course

Joining Data with data.table in R

View Course

Exercise instructions

  • Set title as the key of both netflix and imdb using setkey() (docs).
  • Inner join imdb to netflix without specifying the on argument.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Set the keys
___
___

# Inner join
___
Edit and Run Code