View the step-by-step solution to:

run the lines: junk <- readLines("http://www.gutenberg.org/files/1342/1342-0.txt") junk2 <- unlist(strsplit(junk[36:

run the lines:


junk <- readLines("http://www.gutenberg.org/files/1342/1342-0.txt")

junk2 <- unlist(strsplit(junk[36:13066], " "))

## YOU WILL NEED TO ADD LINES IN HERE TO HELP YOU

## GET THE RIGHT ANSWERS

tail(sort(table(junk2)), n=100)

You will get every word of the classic book "Pride and Prejudice" by Jane Austen.

How many times is the main character "Elizabeth" mentioned in the text?Answer




How many times is "Darcy" mentioned in the text?Answer



This location received the most mentions


Longbourn



How many times was the location mentioned?Answer

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question