Skip to Content
Modern R Programming Cookbook
book

Modern R Programming Cookbook

by Jaynal Abedin
October 2017
Beginner to intermediate
236 pages
7h 38m
English
Packt Publishing
Content preview from Modern R Programming Cookbook

How it works…

A word cloud is one of the more popular ways to do exploratory text analysis. This is very intuitive and easy to understand. The first thing you need is a corpus of documents, and then, you need to do the pre-processing task such as converting all words into lowercase or uppercase, removing punctuation, and stopping words. The stemming also has been done to find the out root of a word. All of this pre-processing has been done using the functions available into the tm library.

After completing the pre-processing, the important step is to calculate term frequency from the term document matrix. Since the term document matrix is a sparse matrix with only 0 and 1 indicating whether a term is absent or present in the corpus, taking ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9781787129054Supplemental Content