Get startedGet started for free

Right join with the data.table syntax

capitals and population, the two data.tables containing information about the geography and population of Australia are available in your workspace. Your goal is to add the state of each city to the population by performing a right join using the data.table syntax.

This exercise is part of the course

Joining Data with data.table in R

View Course

Hands-on interactive exercise

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

# Right join population to capitals using data.table syntax
capitals[___, on = ___]
Edit and Run Code