Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

FIN 4230 Assignment 4 Due time: 11:59pm@ May 12, 2022 Question background: In R, the package “gutenbergr” offers over 53,000 free books

Statistics May 07, 2022

FIN 4230 Assignment 4

Due time: 11:59pm@ May 12, 2022

Question background:

In R, the package “gutenbergr” offers over 53,000 free books. Each book has its own id number. For

instance, we can use following codes to install and visit the package:

install.packages("gutenbergr")

library(gutenbergr)

You also can use following code to examine the structure of the book database:

gutenberg_metadata

And the sample output is

You can see it has several contents like id, title, author, etc.

In this assignment, we are interested in analyzing Charles Dickens’ books. Charles Dickens wrote

fourteen and a half novels. In fact, you can use following code to find all his works id.

library(dplyr)

gutenberg_metadata %>% filter(author == "Dickens, Charles")

Question:

Please select five of Charles Dickens’ books (you also can select other authors’ books to your interests)

to perform sentiment and tf_idf analysis (similar to our CH3_4_newversion.R lecture). To begin

with, for example, you can use following code to collect sample five books contents and store in the

self-named dataframe: dickens_df:

dickens_df <- gutenberg_download(c(98, 1400, 46, 730, 786))

Then you can perform analysis and data manipulation similar to our class lecture. Please submit your

code, output graph and results. If you encounter coding errors, please also attach them so that I can give

partial credits. 

Expert Solution

Buy This Solution
26.99 USD
Instant Access
Already a member? Sign In
Important Note: This solution is from our archive and has been purchased by others. Submitting it as-is may trigger plagiarism detection. Use it for reference only.

For ready-to-submit work, please order a fresh solution below.

Or get a fresh solution
Get Custom Quote
Secure Payment