Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can only get the frequency of the word the to display, coding in r, does anyone know how to do this - # 10: (20

can only get the frequency of the word "the" to display, coding in r, does anyone know how to do this image text in transcribed
- \# 10: (20 points) Create a new data frame called Mandela words 4 that starts with Mandela words but has only one row for each distinct word along with columns indicating the number of times the word occurs and the number of characters in the word. The rows in this data frame should be ordered from highest frequency to lowest frequency. Then display a chart that lists the 20 most frequently occurring words with their frequencies and lengths. [Hint: Think group by.] \# Based on the output generated by your code, answer these three questions: Q4: What is the most frequent ly occuring word and how of ten does it occur in the speech? \# Q5: What is the two most frequent 7y occuring 5 -letter words and how of ten do they occur in the speech? Q6: How many words occur more than 25 times each? what are they? library (dplyr) Mandela words_4 4 - Mandela words 2.85% group by (word) 9s% summarize ( frequency =nO ), length =nchar( word ) ) 98% arrange (desc (frequency)) head (Mande7a words 44,20 )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

2. What should an employer do when facing an OSHA inspection?

Answered: 1 week ago