Session Ready
Exercise

Normalising information

Now it's time to put together the information in a nice format. You've already seen you can use html_table() to parse the infobox into a data frame. But one piece of important information is missing from that table: who the information is about!

In this exercise, you'll parse the infobox in a data frame, and add a row for the full name of the subject.

Instructions
100 XP

No need to repeat all the table parsing code from Chapter 4, we've already added it to your script.

  • Create a new data frame where key is the string "Full name" and value is our previously stored page_title.
  • Combine name_df with cleaned_table using rbind() and assign it to wiki_table2.
  • Print wiki_table2.