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

Extracting an advanced regular expression

In this exercise, you will build on top of the prior exercises by creating a more advanced regular expression to capture the title of the movie, the company name of the distributor and the number of screens in each line of the screens_per_movie data frame.

Every line of screens_per_movie contains these three sections. Using extract you will extract these three and get three new columns with exactly the information you want in a tabular and structured form. This step is key if you want to make sense of unstructured data and bring it into a form that you can later analyze and visualize.

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

Intermediate Regular Expressions in R

ดูคอร์ส

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

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

# Print the first three lines of screens_per_movie
___[1:3, ]
แก้ไขและรันโค้ด