Get startedGet started for free

Exploring data.tables

In this exercise, you will explore two data.tables:

  • netflix: contains information about some of the Netflix original series released in 2017
  • imdb: contains ratings for some TV shows and movies obtained from IMDB

This course touches on a lot of concepts you may have forgotten, so if you ever need a quick refresher, download the data.table Cheat Sheet and keep it handy!

This exercise is part of the course

Joining Data with data.table in R

View Course

Exercise instructions

  • Use the tables() (docs) function to show all the data.tabless in your R session (along with their number of rows, columns and other info).
  • Use the head() (docs) function to print the first 6 rows of netflix and imdb.
  • Print the str() (docs) structure of netflix and imdb.

Hands-on interactive exercise

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

# What data.tables are in my R session?
___

# View the first six rows 
___(___)
___

# Print the structure
___(___)
___
Edit and Run Code