MulaiMulai sekarang secara gratis

Rectangling Star Wars movies

Let's pretend you're a big Star Wars fan and decided to scrape some data from the Star Wars API. You've already loaded the JSON-formatted response into R, and now have two lists of movies named movie_list and movie_planets_list. Your goal is to turn these into rectangular data frames with one row per movie so that you can start crunching those movie stats.

The dplyr package has been pre-loaded for you.

Latihan ini adalah bagian dari kursus

Reshaping Data with tidyr

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create a movie column from the movie_list
tibble(___)
Edit dan Jalankan Kode