<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gd="http://schemas.google.com/g/2005"><id>tag:blogger.com,1999:blog-7958828565254404797.post182895669164922060..comments</id><updated>2024-12-13T03:11:35.450-08:00</updated><title type='text'>Comments on ListenData: Create WordCloud with R</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.listendata.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html'/><link rel="hub" href="http://pubsubhubbub.appspot.com/"/><author><name>Deepanshu Bhalla</name><uri>http://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-5783188263615702017</id><published>2018-07-10T09:21:59.849-07:00</published><updated>2018-07-10T09:21:59.849-07:00</updated><title type='text'>Would appreciate it if you could provide a link to...</title><content type='html'>Would appreciate it if you could provide a link to the data file(s)?</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/5783188263615702017'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/5783188263615702017'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1531239719849#c5783188263615702017' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-6939909"/><gd:extendedProperty name="blogger.displayTime" value="July 10, 2018 at 9:21 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-1959677897382643410</id><published>2016-03-04T05:38:17.375-08:00</published><updated>2016-03-04T05:38:17.375-08:00</updated><title type='text'>i&#39;m using word cloud in shiny , if i select th...</title><content type='html'>i&#39;m using word cloud in shiny , if i select the one data set it have to show the word cloud for corresponding to which i was selected.</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1959677897382643410'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1959677897382643410'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1457098697375#c1959677897382643410' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/02578133913507514430</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1435277532"/><gd:extendedProperty name="blogger.displayTime" value="March 4, 2016 at 5:38 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-5486463166424206837</id><published>2016-03-04T05:38:11.017-08:00</published><updated>2016-03-04T05:38:11.017-08:00</updated><title type='text'>can any one help me on this issues.</title><content type='html'>can any one help me on this issues.</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/5486463166424206837'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/5486463166424206837'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1457098691017#c5486463166424206837' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4927130009461503781'/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/02578133913507514430</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1435277532"/><gd:extendedProperty name="blogger.displayTime" value="March 4, 2016 at 5:38 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-4917307550536348447</id><published>2016-03-04T05:37:08.585-08:00</published><updated>2016-03-04T05:37:08.585-08:00</updated><title type='text'>can any one help me on this issues.</title><content type='html'>can any one help me on this issues.</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4917307550536348447'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4917307550536348447'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1457098628585#c4917307550536348447' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4927130009461503781'/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/02578133913507514430</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1435277532"/><gd:extendedProperty name="blogger.displayTime" value="March 4, 2016 at 5:37 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-4927130009461503781</id><published>2016-03-04T05:36:04.773-08:00</published><updated>2016-03-04T05:36:04.773-08:00</updated><title type='text'>i&#39;m using word cloud in shiny , if i select th...</title><content type='html'>i&#39;m using word cloud in shiny , if i select the one data set it have to show the word cloud for corresponding to which i was selected.</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4927130009461503781'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4927130009461503781'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1457098564773#c4927130009461503781' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/02578133913507514430</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1435277532"/><gd:extendedProperty name="blogger.displayTime" value="March 4, 2016 at 5:36 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-4174500211188379265</id><published>2016-02-17T20:54:42.311-08:00</published><updated>2016-02-17T20:54:42.311-08:00</updated><title type='text'>Hi Deepanshu,

This code in Step 5
docs[[j]] = gsu...</title><content type='html'>Hi Deepanshu,<br /><br />This code in Step 5<br />docs[[j]] = gsub(&quot;^\\s+|\\s+quot;, &quot;&quot;, docs[[j]])<br /><br />missed the &quot; after &quot;^\\s+|\\s+quot;<br /></content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4174500211188379265'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4174500211188379265'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455771282311#c4174500211188379265' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/2870038102585687545'/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/17447719117394112011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-79358740"/><gd:extendedProperty name="blogger.displayTime" value="February 17, 2016 at 8:54 PM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-7869816112487416952</id><published>2016-02-11T00:28:58.752-08:00</published><updated>2016-02-11T00:28:58.752-08:00</updated><title type='text'>One more question, I increased my data points, mea...</title><content type='html'>One more question, I increased my data points, means I included more comments in .csv file, but got only three word in word cloud.<br />Whether earlier there were too many words displayed in chart<br /><br />Why when I added more comments word cloud is showing less words in chart</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7869816112487416952'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7869816112487416952'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455179338752#c7869816112487416952' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/10703709156182925748</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1567832981"/><gd:extendedProperty name="blogger.displayTime" value="February 11, 2016 at 12:28 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-1348651838848019928</id><published>2016-02-10T10:27:03.845-08:00</published><updated>2016-02-10T10:27:03.845-08:00</updated><title type='text'>Thanks a lot George, it does work perfectly.

Just...</title><content type='html'>Thanks a lot George, it does work perfectly.<br /><br />Just one question about note mentioned, in the syntax and step <br /><br />Note : You can remove sparse terms with the following code :<br /> tdm.frequent = removeSparseTerms(tdm, 0.1)<br /><br />What is the use of this?<br /><br />Thanks a lot for your help<br /></content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1348651838848019928'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1348651838848019928'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455128823845#c1348651838848019928' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7865176991299027738'/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/10703709156182925748</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1567832981"/><gd:extendedProperty name="blogger.displayTime" value="February 10, 2016 at 10:27 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-8297915394345322236</id><published>2016-02-10T09:24:58.121-08:00</published><updated>2016-02-10T09:24:58.121-08:00</updated><title type='text'>Hi George,

I am sorry i didn&#39;t get your point...</title><content type='html'>Hi George,<br /><br />I am sorry i didn&#39;t get your point. What exactly you have changed in the code -<br /><br />for (j in seq(docs))<br />{<br />docs[[j]] = gsub(&quot;(RT|via)((?:\\b\\W*@\\w+)+)&quot;, &quot;&quot;, docs[[j]])<br />docs[[j]] = gsub(&quot;@\\w+&quot;, &quot;&quot;, docs[[j]])<br />docs[[j]] = gsub(&quot;http\\w+&quot;, &quot;&quot;, docs[[j]])<br />docs[[j]] = gsub(&quot;[ \t]{2,}&quot;, &quot;&quot;, docs[[j]])<br />docs[[j]] = gsub(&quot;^\\s+|\\s+quot;, &quot;&quot;, docs[[j]])<br />docs[[j]] = gsub(&quot;[^\x20-\x7E]&quot;, &quot;&quot;, docs[[j]])<br />}<br /></content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/8297915394345322236'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/8297915394345322236'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455125098121#c8297915394345322236' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/2870038102585687545'/><author><name>Deepanshu Bhalla</name><uri>https://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-966036103"/><gd:extendedProperty name="blogger.displayTime" value="February 10, 2016 at 9:24 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-7865176991299027738</id><published>2016-02-10T08:17:56.543-08:00</published><updated>2016-02-10T08:17:56.543-08:00</updated><title type='text'>Issue with the version of tm you are using.

run t...</title><content type='html'>Issue with the version of tm you are using.<br /><br />run the following command before running <br />tdm = TermDocumentMatrix(docs, control = kb.tf)<br /><br />docs &lt;- tm_map(docs, PlainTextDocument)</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7865176991299027738'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7865176991299027738'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455121076543#c7865176991299027738' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/17447719117394112011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-79358740"/><gd:extendedProperty name="blogger.displayTime" value="February 10, 2016 at 8:17 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-245650070353878364</id><published>2016-02-10T04:08:22.574-08:00</published><updated>2016-02-10T04:08:22.574-08:00</updated><title type='text'>Yes George, but in step 5 for next set of syntax I...</title><content type='html'>Yes George, but in step 5 for next set of syntax I am getting below error, not sure why I am getting this error<br /><br />&gt; tdm = TermDocumentMatrix(docs, control = kb.tf)<br />Error: inherits(doc, &quot;TextDocument&quot;) is not TRUE<br />&gt; <br />&gt; # convert as matrix<br />&gt; tdm = as.matrix(tdm)<br />Error in as.matrix(tdm) : object &#39;tdm&#39; not found<br />&gt; <br />&gt; # get word counts in decreasing order<br />&gt; word_freqs = sort(rowSums(tdm), decreasing=TRUE)<br />Error in is.data.frame(x) : object &#39;tdm&#39; not found<br />&gt; <br />&gt; # create a data frame with words and their frequencies<br />&gt; dm = data.frame(word=names(word_freqs), freq=word_freqs)<br />Error in data.frame(word = names(word_freqs), freq = word_freqs) : <br />object &#39;word_freqs&#39; not found</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/245650070353878364'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/245650070353878364'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455106102574#c245650070353878364' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/2870038102585687545'/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/10703709156182925748</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1567832981"/><gd:extendedProperty name="blogger.displayTime" value="February 10, 2016 at 4:08 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-2870038102585687545</id><published>2016-02-10T02:29:41.350-08:00</published><updated>2016-02-10T02:29:41.350-08:00</updated><title type='text'>This is fantastic!!!

There is a small error in st...</title><content type='html'>This is fantastic!!!<br /><br />There is a small error in step 5 (instead of &quot; used ;)<br /><br /><br />for (j in seq(docs))<br />{<br /> docs[[j]] = gsub(&quot;(RT|via)((?:\\b\\W*@\\w+)+)&quot;, &quot;&quot;, docs[[j]])<br /> docs[[j]] = gsub(&quot;@\\w+&quot;, &quot;&quot;, docs[[j]])<br /> docs[[j]] = gsub(&quot;http\\w+&quot;, &quot;&quot;, docs[[j]])<br /> docs[[j]] = gsub(&quot;[ \t]{2,}&quot;, &quot;&quot;, docs[[j]])<br /><br /> docs[[j]] = gsub(&quot;^\\s+|\\s+quot;&quot;, &quot;&quot;, docs[[j]])<br /><br /> docs[[j]] = gsub(&quot;[^\x20-\x7E]&quot;, &quot;&quot;, docs[[j]])<br />}</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/2870038102585687545'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/2870038102585687545'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455100181350#c2870038102585687545' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/17447719117394112011</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-79358740"/><gd:extendedProperty name="blogger.displayTime" value="February 10, 2016 at 2:29 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-437617860200390536</id><published>2016-02-10T00:19:18.959-08:00</published><updated>2016-02-10T00:19:18.959-08:00</updated><title type='text'>The above error was resolved in step 5, but when I...</title><content type='html'>The above error was resolved in step 5, but when I executed next set of syntax getting error. Please see below for more details. Can you please let me know why I am getting this error<br /><br /><br />&gt; tdm = TermDocumentMatrix(docs, control = kb.tf)<br />Error: inherits(doc, &quot;TextDocument&quot;) is not TRUE<br />&gt; <br />&gt; # convert as matrix<br />&gt; tdm = as.matrix(tdm)<br />Error in as.matrix(tdm) : object &#39;tdm&#39; not found<br />&gt; <br />&gt; # get word counts in decreasing order<br />&gt; word_freqs = sort(rowSums(tdm), decreasing=TRUE)<br />Error in is.data.frame(x) : object &#39;tdm&#39; not found<br />&gt; <br />&gt; # create a data frame with words and their frequencies<br />&gt; dm = data.frame(word=names(word_freqs), freq=word_freqs)<br />Error in data.frame(word = names(word_freqs), freq = word_freqs) : <br /> object &#39;word_freqs&#39; not found</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/437617860200390536'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/437617860200390536'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455092358959#c437617860200390536' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1306447354135010314'/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/10703709156182925748</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1567832981"/><gd:extendedProperty name="blogger.displayTime" value="February 10, 2016 at 12:19 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-1306447354135010314</id><published>2016-02-09T20:54:08.211-08:00</published><updated>2016-02-09T20:54:08.211-08:00</updated><title type='text'>Hi Thanks for sharing this.

When I executed step ...</title><content type='html'>Hi Thanks for sharing this.<br /><br />When I executed step 5 syntax I got below error<br /><br />Error: unexpected string constant in:<br />&quot; docs[[j]] = gsub(&quot;^\\s+|\\s+quot;, &quot;&quot;, docs[[j]])<br /> docs[[j]] = gsub(&quot;&quot;<br />&gt; }<br />Error: unexpected &#39;}&#39; in &quot;}&quot;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1306447354135010314'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1306447354135010314'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1455080048211#c1306447354135010314' title=''/><author><name>Anonymous</name><uri>https://www.blogger.com/profile/10703709156182925748</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1567832981"/><gd:extendedProperty name="blogger.displayTime" value="February 9, 2016 at 8:54 PM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-1579001091386856255</id><published>2015-07-16T04:23:47.989-07:00</published><updated>2015-07-16T04:23:47.989-07:00</updated><title type='text'>Hi !
Great work.
Well, I am trying to create a wor...</title><content type='html'>Hi !<br />Great work.<br />Well, I am trying to create a word-cloud using tweets. But all it shows in the wordcloud is: object,class,status words<br />LINK to screenshot: https://drive.google.com/file/d/0B4ZhibK97rv0SE9XOXgwOERYNjQ/view?usp=sharing <br />Help appreciated.<br />Thanks</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1579001091386856255'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1579001091386856255'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1437045827989#c1579001091386856255' title=''/><author><name>Jigyasa Grover</name><uri>https://www.blogger.com/profile/15017211863658647460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-2110366797"/><gd:extendedProperty name="blogger.displayTime" value="July 16, 2015 at 4:23 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-7586827347170684753</id><published>2015-06-26T07:40:49.194-07:00</published><updated>2015-06-26T07:40:49.194-07:00</updated><title type='text'>Hey, I am using your code, but I can&#39;t do my o...</title><content type='html'>Hey, I am using your code, but I can&#39;t do my own stopwords. I want to do a wordcloud of a chat and specify some words that shouldn&#39;t go into the wordcloud. Can you please tell me how to get my own words into stopwords? Thank you in advance</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7586827347170684753'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7586827347170684753'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1435329649194#c7586827347170684753' title=''/><author><name>Malte R</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-6939909"/><gd:extendedProperty name="blogger.displayTime" value="June 26, 2015 at 7:40 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-1157475863844366628</id><published>2015-04-06T10:55:23.711-07:00</published><updated>2015-04-06T10:55:23.711-07:00</updated><title type='text'>May i know the section of the code which returns t...</title><content type='html'>May i know the section of the code which returns this error?</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1157475863844366628'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/1157475863844366628'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1428342923711#c1157475863844366628' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/3454942730419016493'/><author><name>Deepanshu Bhalla</name><uri>https://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-966036103"/><gd:extendedProperty name="blogger.displayTime" value="April 6, 2015 at 10:55 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-3454942730419016493</id><published>2015-04-05T22:20:03.914-07:00</published><updated>2015-04-05T22:20:03.914-07:00</updated><title type='text'>Hi Deepanshu

I followed your steps but I got the ...</title><content type='html'>Hi Deepanshu<br /><br />I followed your steps but I got the following error...please help<br /><br /><br />Error in eval(expr, envir, enclos) : object &#39;word&#39; not found</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/3454942730419016493'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/3454942730419016493'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1428297603914#c3454942730419016493' title=''/><author><name>Santanu Das</name><uri>https://www.blogger.com/profile/14054719070844470812</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-2103349716"/><gd:extendedProperty name="blogger.displayTime" value="April 5, 2015 at 10:20 PM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-6823413860282144193</id><published>2015-02-12T05:17:38.494-08:00</published><updated>2015-02-12T05:17:38.494-08:00</updated><title type='text'>I have updated the code. That should solve your pr...</title><content type='html'>I have updated the code. That should solve your problem.Thanks!</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/6823413860282144193'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/6823413860282144193'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1423747058494#c6823413860282144193' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/5635164338156077359'/><author><name>Deepanshu Bhalla</name><uri>https://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-966036103"/><gd:extendedProperty name="blogger.displayTime" value="February 12, 2015 at 5:17 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-5635164338156077359</id><published>2015-02-11T19:45:05.869-08:00</published><updated>2015-02-11T19:45:05.869-08:00</updated><title type='text'>Hi, I followed all the steps but failed to transfo...</title><content type='html'>Hi, I followed all the steps but failed to transform a sentence into a short term. Which is step 5,8<br />I got the error message: <br />Error in UseMethod(&quot;content&quot;, x) : <br /> no applicable method for &#39;content&#39; applied to an object of class &quot;character&quot;<br /><br />I can run all Step 1 to Step 4 till now.<br /><br />Could you help me fix this problem? <br />Thank you in advance.<br /></content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/5635164338156077359'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/5635164338156077359'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1423712705869#c5635164338156077359' title=''/><author><name>Ice Cream Hit Earth</name><uri>https://www.blogger.com/profile/06854359045797177528</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-1748537206"/><gd:extendedProperty name="blogger.displayTime" value="February 11, 2015 at 7:45 PM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-4183308459333466351</id><published>2014-11-30T10:18:46.507-08:00</published><updated>2014-11-30T10:18:46.507-08:00</updated><title type='text'>Thank you! Glad you liked it :-)</title><content type='html'>Thank you! Glad you liked it :-)</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4183308459333466351'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/4183308459333466351'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1417371526507#c4183308459333466351' title=''/><link rel='related' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7203961623067959978'/><author><name>Deepanshu Bhalla</name><uri>https://www.blogger.com/profile/09802839558125192674</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXm_iOrXFR9Ls-mjtOci4qd1m1V1TXkkWJINuMy84-Axo5pNS6CG7oKwR7hfHHI3tB1yuz8W_qo9HK2Cw5fHfe_4cL_2DCf_LyoK9LMLicZojbNYgypIP-RXNsw1GsVhk/s100/pic.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-966036103"/><gd:extendedProperty name="blogger.displayTime" value="November 30, 2014 at 10:18 AM"/></entry><entry><id>tag:blogger.com,1999:blog-7958828565254404797.post-7203961623067959978</id><published>2014-11-24T04:25:42.069-08:00</published><updated>2014-11-24T04:25:42.069-08:00</updated><title type='text'>Awesome article.</title><content type='html'>Awesome article.</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7203961623067959978'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7958828565254404797/182895669164922060/comments/default/7203961623067959978'/><link rel='alternate' type='text/html' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html?showComment=1416831942069#c7203961623067959978' title=''/><author><name>vickie</name><uri>https://www.blogger.com/profile/12265676138250400608</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdjrwf_XLs1onknOW9NCfUiuxJxYTHrJT8O4UURM0_4c5yubs5VspwOO93d8t-CUxBPHxaxJOndqlqrcgTlFCAo5IfE94XaaxbsRpanVwshJg1FQPYJ0oaFHwzUdTduo4/s220/01.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='https://www.listendata.com/2014/11/create-wordcloud-with-r.html' ref='tag:blogger.com,1999:blog-7958828565254404797.post-182895669164922060' source='http://www.blogger.com/feeds/7958828565254404797/posts/default/182895669164922060' type='text/html'/><gd:extendedProperty name="blogger.itemClass" value="pid-2073948593"/><gd:extendedProperty name="blogger.displayTime" value="November 24, 2014 at 4:25 AM"/></entry></feed>