<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/the-rt-of-naming-your-blog/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://masalmon.github.io/2017/01/29/rbloggersnames/"> Maëlle</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>In this post, I’m sharing a brand-new analysis! The reason for this is my blog being added to <a target="_blank" rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers</a> by Tal Galili after I filled <a target="_blank" rel="nofollow" href="https://www.r-bloggers.com/add-your-blog/">this form</a>. R-bloggers is a collection of blogs about R, whose new posts get added to the website via the magic of RSS feeds. R-bloggers even has a <a target="_blank" rel="nofollow" href="https://twitter.com/Rbloggers">Twitter account</a>. As a reader of R-bloggers you get exposed to many different analyses and ideas, as a R-blogger you reach a wider audience, so really it’s an useful website. Tal does a great job maintaining R-bloggers and understandably likes seeing R-bloggers mentioning the website on their blog, which I already do in the <a target="_blank" rel="nofollow" href="http://www.masalmon.eu/about/">About section</a>, and in one article, which I’ve consistently failed to do in the last two posts because I got too caught up about the article at hand to think about anything else. So I’ve figured out the best way not to forget to thank Tal for his work was to do an analysis <em>about</em> R-bloggers! Genius, I know. I’ve scraped the <a target="_blank" rel="nofollow" href="https://www.r-bloggers.com/blogs-list/">full list of contributing blogs</a> and had a look at their names and addresses.</p>
<p><span></span></p>
<h1>Scraping and transforming the list of blogs</h1>
<p>The list of contributing blogs is not an html table which makes me things more interesting. I had to look a bit at the source of the html page to come up with a solution to transform it. I wasn’t too slow because I’ve done something similar with Wikipedia data in the past, something that’s still an unfinished building, of course, but whose code I could re-use.</p>
<p>I used <a target="_blank" rel="nofollow" href="https://github.com/hadley/rvest"><code>rvest</code></a> for first scraping the data but also <a target="_blank" rel="nofollow" href="https://github.com/tidyverse/stringr"><code>stringr</code></a> for manipulating strings. What I like the most about <code>stringr</code> compared to manipulating strings with base R are the names of functions, that reflect what they do so well, and the order of arguments, with the <code>character</code> vector first. <a target="_blank" rel="nofollow" href="https://twitter.com/nj_tierney">Nick</a>, who has <a target="_blank" rel="nofollow" href="http://www.njtierney.com/">a great R blog</a> by the way, told me in the comments <a target="_blank" rel="nofollow" href="http://www.masalmon.eu/2017/01/26/morewater/">of one post</a> I had “some pretty ninja grep skills”. Although I think he exaggerates a little bit, I’ll try not to disappoint him!</p>
<p>First I wanted to get a <code>character</code> vector for each blog.</p>
<div>
<pre><code><span>library</span><span>(</span><span>&quot;rvest&quot;</span><span>)</span><span>
</span><span>library</span><span>(</span><span>&quot;purrr&quot;</span><span>)</span><span>
</span><span>library</span><span>(</span><span>&quot;tibble&quot;</span><span>)</span><span>
</span><span>library</span><span>(</span><span>&quot;stringr&quot;</span><span>)</span><span>
</span><span>blogs_list</span><span> </span><span>&lt;-</span><span> </span><span>read_html</span><span>(</span><span>&quot;https://www.r-bloggers.com/blogs-list/&quot;</span><span>)</span><span>
</span><span>blogs_list</span><span>
</span></code></pre>
</div>
<div>
<pre><code>## {xml_document}
## <span>&lt;html</span> <span>xmlns=</span><span>&quot;http://www.w3.org/1999/xhtml&quot;</span> <span>lang=</span><span>&quot;en-US&quot;</span> <span>prefix=</span><span>&quot;og: http://ogp.me/ns#&quot;</span> <span>itemscope=</span><span>&quot;&quot;</span> <span>itemtype=</span><span>&quot;http://schema.org/WebSite&quot;</span><span>></span>
## [1] <span>&lt;head</span> <span>profile=</span><span>&quot;http://gmpg.org/xfn/11&quot;</span><span>></span>\n  <span>&lt;meta</span> <span>http-equiv=</span><span>&quot;Content ...
## [2] &lt;body class=&quot;</span><span>page</span> <span>page-id-16581</span> <span>page-template</span> <span>page-template-page-lin</span> <span>...</span>
</code></pre>
</div>
<div>
<pre><code><span>blogs_list</span><span> </span><span>&lt;-</span><span> </span><span>html_nodes</span><span>(</span><span>blogs_list</span><span>,</span><span> </span><span>&quot;ul&quot;</span><span>)</span><span> </span><span>blogs_list</span><span>
</span></code></pre>
</div>
<div>
<pre><code>## {xml_nodeset (10)}
##  [1] &lt;ul id=&quot;menu-top-nav&quot; class=&quot;sf-menu&quot;>&lt;li id=&quot;menu-item-48314&quot; clas ...
##  [2] &lt;ul class=&quot;sub-menu&quot;>&lt;li id=&quot;menu-item-76945&quot; class=&quot;menu-item menu ...
##  [3] &lt;ul>\n  &lt;li>\n    &lt;a class=&quot;rsswidget&quot; href=&quot;http://feedproxy.googl ...
##  [4] &lt;ul>&lt;li>&lt;a href=&quot;https://www.r-bloggers.com/search/git&quot;>git&lt;/a>&lt;/li ...
##  [5] &lt;ul>&lt;li>\n\t\t\t\t&lt;a href=&quot;https://www.r-bloggers.com/trumpworld-an ...
##  [6] &lt;ul class=&quot;xoxo blogroll&quot;>&lt;li>&lt;a href=&quot;http://www.proc-x.com/&quot; oncl ...
##  [7] &lt;ul class=&quot;xoxo blogroll&quot;>&lt;li>&lt;a href=&quot;#&quot;>&lt;/a>&lt;/li>\n&lt;li>&lt;a href=&quot;# ...
##  [8] &lt;ul class=&quot;xoxo blogroll&quot;>&lt;li>&lt;a href=&quot;https://www.r-users.com/&quot; on ...
##  [9] &lt;ul>&lt;li>\n\t\t\t\t\t\t\t\t\t\t&lt;a href=&quot;https://www.r-bloggers.com/v ...
## [10] &lt;ul>\n  &lt;li>\n    &lt;a class=&quot;rsswidget&quot; href=&quot;http://feedproxy.googl ...
</code></pre>
</div>
<div>
<pre><code><span>blogs_list</span><span> </span><span>&lt;-</span><span> </span><span>blogs_list</span><span>[</span><span>str_detect</span><span>(</span><span>blogs_list</span><span>,</span><span> </span><span>&quot;xoxo blogroll&quot;</span><span>)][</span><span>2</span><span>]</span><span>
</span><span>blogs_list</span><span>
</span></code></pre>
</div>
<div>
<pre><code>## {xml_nodeset (1)}
## [1] &lt;ul class=&quot;xoxo blogroll&quot;>&lt;li>&lt;a href=&quot;#&quot;>&lt;/a>&lt;/li>\n&lt;li>&lt;a href=&quot;#&quot; ...
</code></pre>
</div>
<div>
<pre><code><span>blogs_list</span><span> </span><span>&lt;-</span><span> </span><span>toString</span><span>(</span><span>blogs_list</span><span>)</span><span>
</span><span>blogs_list</span><span> </span><span>&lt;-</span><span> </span><span>str_split</span><span>(</span><span>blogs_list</span><span>,</span><span> </span><span>&quot;&lt;li>&lt;a&quot;</span><span>,</span><span> </span><span>simplify</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>)</span><span>
</span><span># it starts from 6
</span><span>blogs_list</span><span> </span><span>&lt;-</span><span> </span><span>blogs_list</span><span>[</span><span>6</span><span>:</span><span>length</span><span>(</span><span>blogs_list</span><span>)]</span><span>
</span><span>head</span><span>(</span><span>blogs_list</span><span>)</span><span>
</span></code></pre>
</div>
<div>
<pre><code>## [1] &quot; href=\&quot;http://dmlc.ml\&quot; onclick=\&quot;_gaq.push(['_trackEvent', 'outbound-widget', 'http://dmlc.ml', ' R stats']);\&quot;> R stats&lt;/a>&lt;/li>\n&quot;                                                                                         
## [2] &quot; href=\&quot;http://lionel-.github.io\&quot; onclick=\&quot;_gaq.push(['_trackEvent', 'outbound-widget', 'http://lionel-.github.io', ' rstats']);\&quot;> rstats&lt;/a>&lt;/li>\n&quot;                                                                       
## [3] &quot; href=\&quot;https://jean9208.github.io/rss-R.xml\&quot; onclick=\&quot;_gaq.push(['_trackEvent', 'outbound-widget', 'https://jean9208.github.io/rss-R.xml', 'Jean Arreola']);\&quot;>Jean Arreola&lt;/a>&lt;/li>\n&quot;                                   
## [4] &quot; href=\&quot;http://ryouready.wordpress.com\&quot; onclick=\&quot;_gaq.push(['_trackEvent', 'outbound-widget', 'http://ryouready.wordpress.com', 'R you ready?']);\&quot; title=\&quot;My advances in R  a learners diary\&quot;>R you ready?&lt;/a>&lt;/li>\n&quot;
## [5] &quot; href=\&quot;https://rveryday.wordpress.com/\&quot; onclick=\&quot;_gaq.push(['_trackEvent', 'outbound-widget', 'https://rveryday.wordpress.com/', '(R)very Day']);\&quot;>(R)very Day&lt;/a>&lt;/li>\n&quot;                                                   
## [6] &quot; href=\&quot;http://www.talyarkoni.org/blog\&quot; onclick=\&quot;_gaq.push(['_trackEvent', 'outbound-widget', 'http://www.talyarkoni.org/blog', '[citation needed] » R']);\&quot;>[citation needed] » R&lt;/a>&lt;/li>\n&quot;
</code></pre>
</div>
<p>OK so now from each element of <code>blogs_list</code> I want to extract the name of the blog, e.g. ‘– R stats’, and its address, e.g. ‘http://dmlc.ml’. I’ll first extract the links because using the link it’ll be easier to extract the blog name. Note the use of <code>map_chr</code>: using this variant of <code>purrr</code> function <code>map</code>, you directly get a <code>character</code> vector instead of a list.</p>
<div>
<pre><code><span>extract_link</span><span> </span><span>&lt;-</span><span> </span><span>function</span><span>(</span><span>x</span><span>){</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>x</span><span>,</span><span> </span><span>pattern</span><span> </span><span>=</span><span> </span><span>&quot;href=\\\&quot;&quot;</span><span>,</span><span>
</span><span>replacement</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>x</span><span>,</span><span> </span><span>pattern</span><span> </span><span>=</span><span> </span><span>&quot;\\\&quot; onclick=.*\\n&quot;</span><span>,</span><span>
</span><span>replacement</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_trim</span><span>(</span><span>x</span><span>)</span><span>
</span><span>return</span><span>(</span><span>x</span><span>)</span><span>
</span><span>}</span><span>
</span><span>blogs_address</span><span> </span><span>&lt;-</span><span> </span><span>map_chr</span><span>(</span><span>blogs_list</span><span>,</span><span> </span><span>extract_link</span><span>)</span><span>
</span><span># the last one is a special snowflake
</span><span>blogs_address</span><span>[</span><span>length</span><span>(</span><span>blogs_address</span><span>)]</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>blogs_address</span><span>[</span><span>length</span><span>(</span><span>blogs_address</span><span>)],</span><span>
</span><span>&quot;\\\n\\\t&lt;\\/ul>&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>head</span><span>(</span><span>blogs_address</span><span>)</span><span>
</span></code></pre>
</div>
<div>
<pre><code>## [1] &quot;http://dmlc.ml&quot;                      
## [2] &quot;http://lionel-.github.io&quot;            
## [3] &quot;https://jean9208.github.io/rss-R.xml&quot;
## [4] &quot;http://ryouready.wordpress.com&quot;      
## [5] &quot;https://rveryday.wordpress.com/&quot;     
## [6] &quot;http://www.talyarkoni.org/blog&quot;
</code></pre>
</div>
<p>So let’s now extract names!</p>
<div>
<pre><code><span>extract_names</span><span> </span><span>&lt;-</span><span> </span><span>function</span><span>(</span><span>x</span><span>,</span><span> </span><span>address</span><span>){</span><span>
</span><span>address</span><span> </span><span>&lt;-</span><span> </span><span>str_replace_all</span><span>(</span><span>address</span><span>,</span><span> </span><span>&quot;\\/&quot;</span><span>,</span><span> </span><span>&quot;\\\\\\/&quot;</span><span>)</span><span>
</span><span>address</span><span> </span><span>&lt;-</span><span> </span><span>str_replace_all</span><span>(</span><span>address</span><span>,</span><span> </span><span>&quot;\\.&quot;</span><span>,</span><span> </span><span>&quot;\\\\\\.&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace_all</span><span>(</span><span>x</span><span>,</span><span> </span><span>paste0</span><span>(</span><span>&quot;.*&quot;</span><span>,</span><span> </span><span>address</span><span>,</span><span> </span><span>&quot;', '&quot;</span><span>),</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace_all</span><span>(</span><span>x</span><span>,</span><span> </span><span>&quot;]\\)\\;.*\\\n&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>x</span><span>,</span><span> </span><span>&quot;'&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>return</span><span>(</span><span>x</span><span>)</span><span>
</span><span>}</span><span>
</span><span>blogs_names</span><span> </span><span>&lt;-</span><span> </span><span>map2_chr</span><span>(</span><span>blogs_list</span><span>,</span><span> </span><span>blogs_address</span><span>,</span><span> </span><span>extract_names</span><span>)</span><span>
</span><span># last one is a special snowflake again
</span><span>blogs_names</span><span>[</span><span>length</span><span>(</span><span>blogs_names</span><span>)]</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>blogs_names</span><span>[</span><span>length</span><span>(</span><span>blogs_address</span><span>)],</span><span>
</span><span>&quot;\\\n\\\t&lt;\\/ul>&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>head</span><span>(</span><span>blogs_names</span><span>)</span><span>
</span></code></pre>
</div>
<div>
<pre><code>## [1] &quot; R stats&quot;             &quot; rstats&quot;              &quot;Jean Arreola&quot;       
## [4] &quot;R you ready?&quot;        &quot;(R)very Day&quot;           &quot;[citation needed] » R&quot;
</code></pre>
</div>
<p>Now I can build a <code>tibble</code> of names and addresses of blogs!</p>
<div>
<pre><code><span>blogs_info</span><span> </span><span>&lt;-</span><span> </span><span>tibble</span><span>(</span><span>name</span><span> </span><span>=</span><span> </span><span>blogs_names</span><span>,</span><span>
</span><span>address</span><span> </span><span>=</span><span> </span><span>blogs_address</span><span>)</span><span>
</span></code></pre>
</div>
<p>There are 746 blogs. The list also includes blogs that are no longer updated apparently, but that contributed content to R-bloggers at one point. My own blog isn’t in the list yet which is fine because “Maëlle” is a pretty unique blog name but neither funny nor witty, except if testing encoding issues is funny or witty.</p>
<p>Before starting to have fun looking at blog names and addresses, I’ll extract the extension from the addresses.</p>
<div>
<pre><code><span>extract_extension</span><span> </span><span>&lt;-</span><span> </span><span>function</span><span>(</span><span>df</span><span>){</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>df</span><span>$</span><span>address</span><span>,</span><span> </span><span>&quot;feed\\.r-bloggers\\.xml&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>x</span><span>,</span><span> </span><span>&quot;\\.xml&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>x</span><span>,</span><span> </span><span>&quot;\\.html&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace</span><span>(</span><span>x</span><span>,</span><span> </span><span>&quot;\\.php&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_split</span><span>(</span><span>x</span><span>,</span><span> </span><span>&quot;\\.&quot;</span><span>,</span><span> </span><span>simplify</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>)</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>x</span><span>[</span><span>length</span><span>(</span><span>x</span><span>)]</span><span>
</span><span>x</span><span> </span><span>&lt;-</span><span> </span><span>str_replace_all</span><span>(</span><span>x</span><span>,</span><span> </span><span>&quot;\\/.*&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>return</span><span>(</span><span>x</span><span>)</span><span>
</span><span>}</span><span>
</span><span>blogs_info</span><span> </span><span>&lt;-</span><span> </span><span>by_row</span><span>(</span><span>blogs_info</span><span>,</span><span>
</span><span>extract_extension</span><span>,</span><span>
</span><span>.to</span><span> </span><span>=</span><span> </span><span>&quot;extension&quot;</span><span>,</span><span>
</span><span>.collate</span><span> </span><span>=</span><span> </span><span>&quot;cols&quot;</span><span>)</span><span>
</span><span>knitr</span><span>::</span><span>kable</span><span>(</span><span>head</span><span>(</span><span>blogs_info</span><span>,</span><span> </span><span>n</span><span> </span><span>=</span><span> </span><span>20</span><span>))</span><span>
</span></code></pre>
</div>
<table>
<thead>
<tr>
<th>name</th>
<th>address</th>
<th>extension</th>
</tr>
</thead>
<tbody>
<tr>
<td>– R stats</td>
<td>http://dmlc.ml</td>
<td>ml</td>
</tr>
<tr>
<td>– rstats</td>
<td>http://lionel-.github.io</td>
<td>io</td>
</tr>
<tr>
<td>–Jean Arreola–</td>
<td>https://jean9208.github.io/rss-R.xml</td>
<td>io</td>
</tr>
<tr>
<td>“R” you ready?</td>
<td>http://ryouready.wordpress.com</td>
<td>com</td>
</tr>
<tr>
<td>(R)very Day</td>
<td>https://rveryday.wordpress.com/</td>
<td>com</td>
</tr>
<tr>
<td>[citation needed] » R</td>
<td>http://www.talyarkoni.org/blog</td>
<td>org</td>
</tr>
<tr>
<td>[R] tricks</td>
<td>http://rtricks.wordpress.com</td>
<td>com</td>
</tr>
<tr>
<td>/mgritts_</td>
<td>http://mgritts.com/feed.r.xml</td>
<td>r</td>
</tr>
<tr>
<td>#untitled</td>
<td>http://blog.ambodi.com/</td>
<td>com</td>
</tr>
<tr>
<td>0xCAFEBABE</td>
<td>http://xcafebabe.blogspot.com/search/label/R</td>
<td>com</td>
</tr>
<tr>
<td>4D Pie Charts » R</td>
<td>http://4dpiecharts.com</td>
<td>com</td>
</tr>
<tr>
<td>56north | Skræddersyet dataanalyse » Renglish</td>
<td>http://www.56n.dk</td>
<td>dk</td>
</tr>
<tr>
<td>A blog from Sydney</td>
<td>http://a-blog-from-sydney.blogspot.com/search/label/R</td>
<td>com</td>
</tr>
<tr>
<td>A Blog On Data Analytics</td>
<td>http://aliarsalankazmi.github.io/blog_DA/</td>
<td>io</td>
</tr>
<tr>
<td>A HopStat and Jump Away » Rbloggers</td>
<td>http://hopstat.wordpress.com/</td>
<td>com</td>
</tr>
<tr>
<td>a Physicist in Wall Street</td>
<td>http://aphysicistinwallstreet.blogspot.com/search/label/R</td>
<td>com</td>
</tr>
<tr>
<td>A Pint of R</td>
<td>http://rpint.wordpress.com</td>
<td>com</td>
</tr>
<tr>
<td>A Statistics Blog – R</td>
<td>http://statistics.rainandrhino.org/R.xml</td>
<td>org</td>
</tr>
<tr>
<td>Actuarially (Matt Malin)</td>
<td>http://www.actuarially.co.uk/</td>
<td>uk</td>
</tr>
<tr>
<td>Adventures in Analytics and Visualization</td>
<td>http://analyticsandvisualization.blogspot.com/search/label/R</td>
<td>com</td>
</tr>
</tbody>
</table>
<h1>Analysing blog info</h1>
<h2>How and where do people blog?</h2>
<p>Out of the 746 blogs there are 156 <code>blogspot.com</code> blogs, 181 <code>wordpress.com</code> blogs and 53 <code>github.io</code> blogs. I guess most <code>github.io</code> blogs are <a target="_blank" rel="nofollow" href="https://github.com/yihui/knitr-jekyll"><code>knitr-jekyll</code></a>-based like mine, or more modern <a target="_blank" rel="nofollow" href="https://github.com/rstudio/blogdown"><code>blogdown</code></a> blogs. For blogs with a specific domain name, e.g. Julia Silge’s excellent <a target="_blank" rel="nofollow" href="http://juliasilge.com/">“data science ish” blog</a> who has “juliasilge” as domain name, it’s more difficult to know how people blog. Well I know Julia uses <code>knitr-jekyll</code>.</p>
<p>What about extensions?</p>
<div>
<pre><code><span>library</span><span>(</span><span>&quot;dplyr&quot;</span><span>)</span><span>
</span><span>blogs_info</span><span> </span><span>%>%</span><span> </span><span>group_by</span><span>(</span><span>extension</span><span>)</span><span> </span><span>%>%</span><span>
</span><span>summarize</span><span>(</span><span>n</span><span> </span><span>=</span><span> </span><span>n</span><span>())</span><span> </span><span>%>%</span><span>
</span><span>arrange</span><span>(</span><span>desc</span><span>(</span><span>n</span><span>))</span><span> </span><span>%>%</span><span>
</span><span>head</span><span>(</span><span>n</span><span> </span><span>=</span><span> </span><span>16</span><span>)</span><span> </span><span>%>%</span><span>
</span><span>knitr</span><span>::</span><span>kable</span><span>()</span><span>
</span></code></pre>
</div>
<table>
<thead>
<tr>
<th>extension</th>
<th>n</th>
</tr>
</thead>
<tbody>
<tr>
<td>com</td>
<td>533</td>
</tr>
<tr>
<td>io</td>
<td>53</td>
</tr>
<tr>
<td>org</td>
<td>39</td>
</tr>
<tr>
<td>net</td>
<td>27</td>
</tr>
<tr>
<td>de</td>
<td>11</td>
</tr>
<tr>
<td>info</td>
<td>7</td>
</tr>
<tr>
<td>me</td>
<td>7</td>
</tr>
<tr>
<td>uk</td>
<td>7</td>
</tr>
<tr>
<td>nl</td>
<td>6</td>
</tr>
<tr>
<td>co</td>
<td>4</td>
</tr>
<tr>
<td>eu</td>
<td>4</td>
</tr>
<tr>
<td>name</td>
<td>4</td>
</tr>
<tr>
<td>ca</td>
<td>3</td>
</tr>
<tr>
<td>edu</td>
<td>3</td>
</tr>
<tr>
<td>es</td>
<td>3</td>
</tr>
<tr>
<td>fr</td>
<td>3</td>
</tr>
</tbody>
</table>
<p>I totally stopped at “fr” on purpose. Without surprise given the number of blogspot/wordpress blogs “.com” is a favourite, and then “.io”. I’m quite happy to see 4 fellow “.eu” bloggers. But I’ll admit regretting I didn’t choose “.guru” like <a target="_blank" rel="nofollow" href="https://youranalytics.guru/">this blog</a> because I’d have loved to become a R guru.</p>
<h2>So, what’s in blog names?</h2>
<p>The first thing I noticed when looking at the names of blogs was the high frequency of puns! There’s the <a target="_blank" rel="nofollow" href="http://www.hallwaymathlete.com/search/label/rblogger">“Hallway Mathlete”</a>, <a target="_blank" rel="nofollow" href="http://omaymas.github.io/">“Once Upon a Data”</a>, <a target="_blank" rel="nofollow" href="http://www.imachordata.com/">“i’m a chordata! urochordata! » R”</a> (too bad this website doesn’t seem to exist any longer), etc. And well these were regular data / statistics puns… then we have the R puns! <a target="_blank" rel="nofollow" href="https://shiring.github.io/">“Shirin’s playgRound”</a>, <a target="_blank" rel="nofollow" href="http://ryouready.wordpress.com/">““R” you ready?”</a>, <a target="_blank" rel="nofollow" href="https://rveryday.wordpress.com/">“(R)very Day”</a>… R Bloggers are a bit like hair dressers, said my husband when I told him about some names.</p>
<p>Another not surprising feature of some blog names is to include something about statistics, like David Robinson’s <a target="_blank" rel="nofollow" href="http://varianceexplained.org/">“Variance Explained”</a>. Maybe we could resolve the Bayesians vs. frequentist feud by looking at blog names? Well 4 have a name including “Bayes”, 0 a “frequentist” name. That said, I can have missed a pun indicating the author’s position on the subject.</p>
<p>Names of blogs can also indicate the field where the author applies R, e.g. 15 blogs include something “bio”-ish and 3 contain the word “finance”.</p>
<p>Also, in case you want a bit of action in your life, there are 6 “adventures” blogs, and 3 “journey” blogs. By the way, my PhD advisor’s blog, <a target="_blank" rel="nofollow" href="http://staff.math.su.se/hoehle/blog/">“Theory meets practice…”</a> can also help you in your daily adventures, from <a target="_blank" rel="nofollow" href="http://staff.math.su.se/hoehle/blog/2016/06/12/optimalChoice.html">choosing a Tinder profile</a> to <a target="_blank" rel="nofollow" href="http://staff.math.su.se/hoehle/blog/2016/12/23/surprise.html">knowing which Kinder Surprise eggs contain a figure</a>.</p>
<p>After this random exploration of blog names, I realized you’d all be waiting for a wordcloud. Or so I think. So let’s make a wordcloud of R blog names!</p>
<div>
<pre><code><span>library</span><span>(</span><span>&quot;wordcloud&quot;</span><span>)</span><span>
</span><span>words</span><span> </span><span>&lt;-</span><span> </span><span>toString</span><span>(</span><span>blogs_info</span><span>$</span><span>name</span><span>)</span><span>
</span><span>words</span><span> </span><span>&lt;-</span><span> </span><span>str_split</span><span>(</span><span>words</span><span>,</span><span> </span><span>pattern</span><span> </span><span>=</span><span> </span><span>&quot; &quot;</span><span>,</span><span> </span><span>simplify</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>)</span><span>
</span><span>set.seed</span><span>(</span><span>1</span><span>)</span><span>
</span><span>wordcloud</span><span>(</span><span>words</span><span>,</span><span> </span><span>colors</span><span> </span><span>=</span><span> </span><span>viridis</span><span>::</span><span>viridis_pal</span><span>(</span><span>end</span><span> </span><span>=</span><span> </span><span>0.8</span><span>)(</span><span>10</span><span>),</span><span>
</span><span>min.freq</span><span> </span><span>=</span><span> </span><span>3</span><span>,</span><span> </span><span>random.color</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>)</span><span>
</span></code></pre>
</div>
<p><img alt="plot of chunk unnamed-chunk-7" src="https://i1.wp.com/masalmon.github.io/figure/source/2017-01-29-rbloggersnames/unnamed-chunk-7-1.png?w=456" data-recalc-dims="1"></p>
<h1>Conclusion</h1>
<p>You might be disappointed that I don’t have any good advice for naming your blog. Sure, looking at existing names you can choose one for fitting in (including words like “data”, “rstats”, etc.) or a very original one, but does it predict success? I guess it’s better, however, to have a really cool blog name if you start printing t-shirts for your readers.</p>
<p>Another thing you might need to name during your R journey/adventures is a package. If you’re interested in this issue, you might want to read Alex Whant’s post <a target="_blank" rel="nofollow" href="http://alexwhan.com/2016-04-19-package-names">“What’s in a [package] name?”</a>.</p>
<p>And last but not least, thanks again to Tal for creating and maintaining R-bloggers!</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://masalmon.github.io/2017/01/29/rbloggersnames/"> Maëlle</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/uqtpZeN4exo"></a></div>