Joining a data.frame
The netflix and imdb datasets have been loaded into your R session. Your goal is to add IMBD ratings to all series in the netflix dataset, but this time netflix has been loaded in as a data.frame instead of a data.table.
Este exercício faz parte do curso
Joining Data with data.table in R
Instruções do exercício
- Convert
netflixto adata.tableusing theas.data.table()(docs) function so that its rownames become a column named"series". - Right join the new
data.tableyou've just created,netflix_dt, toimdbusing thedata.tablejoin syntax.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Convert netflix to a data.table
netflix_dt <- ___
# Right join
___