<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/text-mining-with-r-a-tidy-approach/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://pachamaltese.github.io/2017-05-20_text_mining_with_r.html"> Pachá (Batteries Included)</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<h1>About the book</h1>
<div>
<img hspace="20" alt=" " align="left" src="https://i0.wp.com/pachamaltese.github.io/images/2017-05-20_text_mining_with_r/book_cover.png?w=456" data-recalc-dims="1">
</div>
<p>This book applies tidy data principles to text analysis. The aim is to present tools to make many text mining tasks easier, more effective, and consistent with tools already in use, and in particular it presents the tidytext R package.</p>
<p>I love this ebook, at the moment you can read the chapter at the <a target="_blank" rel="nofollow" href="http://tidytextmining.com/">book’s website</a>, and I want it to be soon available on <a target="_blank" rel="nofollow" href="https://www.amazon.com/Text-Mining-R-Tidy-Approach/dp/1491981652/ref=sr_1_1?ie=UTF8&qid=1495318155&sr=8-1&keywords=Text+Mining+with+R">Amazon</a> to have a paperback copy.</p>
<p>The authors of this beautiful exposition of methodology and coding are <a target="_blank" rel="nofollow" href="https://twitter.com/juliasilge">Julia Silge</a> and <a target="_blank" rel="nofollow" href="https://twitter.com/drob">David Robinson</a>. Kudos to both of them. In particular, I’ve been following Julia’s blog posts in the last two years and using it as a reference to teach R in my courses.</p>
<h1>Table of contents</h1>
<p>List of chapters:</p>
<ol>
<li>The tidy text format</li>
<li>Sentiment analysis with tidy data</li>
<li>Analyzing word and document frequency: tf-idf</li>
<li>Relationships between words: n-grams and correlations</li>
<li>Converting to and from non-tidy formats</li>
<li>Topic modeling</li>
<li>Case study: comparing Twitter archives</li>
<li>Case study: mining NASA metadata</li>
<li>Case study: analyzing usenet text</li>
<li>References</li>
</ol>
<h1>Remarkable contributions of this book</h1>
<p>In my opinion chapter 5 is one of the best expositions of data structures in R. By using modern R packages such as <code>dplyr</code> and <code>tidytext</code>, among other packages, the authors move between <code>tibble</code>, <code>DocumentTermMatrix</code> and <code>VCorpus</code>, while they present a set of good practises in R and do include <code>ggplot2</code> charts to make concepts such as sentiment analysis clear.</p>
<p>If you often hear colleagues saying that R syntax is awkward, show this material to them. Probably people who used R 5 years ago or more, and haven’t used it in a while, will be amazed to see how the <code>%>%</code> operator is used here.</p>
<p>Text analysis requires working with a variety of tools, many of which have inputs and outputs that aren’t in a tidy form. What the authors present here is a noble and remarkable piece of work.</p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://pachamaltese.github.io/2017-05-20_text_mining_with_r.html"> Pachá (Batteries Included)</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/KmgCiYa7hCQ"></a></div>