เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Finding multiple matches

Two new data.tables have been loaded in your workspace:

  • life_exp: contains the life expectancy of each country in 2010 sourced from the Gapminder foundation
  • continents: contains a mapping between each country and the continent(s) they are part of built from information provided by Countries-ofthe-World.com.

In this exercise, you will find the countries that are listed in more than one continent

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Joining Data with data.table in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# How many continents is each country listed in?
___[___, on = .(country), .N, 
    by = ___]
แก้ไขและรันโค้ด