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

Combine extracted data into a data frame

Extracting data like this is not as straightforward as with html_table(). So far, you've only extracted vectors of data. Now it's time to combine them into their own data frame.

The vectors actors, roles, and functions that you just extracted from the messy HTML table are still available in this exercise.

Bu egzersiz

Web Scraping in R

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

Egzersiz talimatları

  • Combine the three vectors actors, roles, and functions into a data frame called cast (with columns Actor, Role and Function, respectively).

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create a new data frame from the extracted vectors
cast <- tibble(
  Actor = actors, 
  ___, 
  ___)

cast
Kodu Düzenle ve Çalıştır