Getting keys
You can also get and set the keys programmatically. In this exercise, only one of netflix and imdb has their key set. Your job is to find out which data.table has had their key set, then use that to set the key for the other data.table.
Este ejercicio forma parte del curso
Joining Data with data.table in R
Instrucciones del ejercicio
- Check whether
netflixandimdbhave had any key set. - Assign the key of the
data.tablewhich has a key tothe_key. - Set the key of the other
data.tableusingthe_key.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Check for keys
___
___
# Find the key
the_key <- ___
# Set the key for the other data.table
___(___, ___)