BaşlayınÜcretsiz Başlayın

International phone numbers

You work for a multinational company that uses auto-dialer software to contact its customers. When new customers subscribe online they are asked for a phone number but they often forget to add the country code needed for international calls. You were asked to fix this issue in the database. You've been given a data frame with national numbers and country codes named phone_nr_df. Now you want to combine the country_code and national_number columns to create valid international numbers.

Bu egzersiz

Reshaping Data with tidyr

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Use the unite() function to create a new international_number column, using an empty string as the separator.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

phone_nr_df %>%
  # Unite the country_code and national_number columns
  ___
Kodu Düzenle ve Çalıştır