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

Unemployment rates by region

The world_bank_data tibble contains information about countries for reported years. It also includes geographic data in its continent and region variables. In this exercise and the next, you'll work on creating and calling functions that wrap dplyr code.

Throughout this chapter, dplyr and world_bank_data have been loaded for you.

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

Programming with dplyr

ดูคอร์ส

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

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

# Complete the function code
unemployment_by_region <- ___(region_name) {
   ___ %>%
    select(iso, country, year, 
           continent, region, unemployment_rate) %>%
    ___
}
แก้ไขและรันโค้ด