In-Class Activity

In-Class Activity - Wikipedia Scraping, 10/30/2025

I pulled the titles of 10 random Wikipedia pages and placed them in a data frame. I then used nchar() to count the number of characters in each page title and used hist() to visualize the distribution of those counts.

# Count the characters and make a histogram
nchar(wiki_pages$wiki_pages) %>% hist()