<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/counting-digits-by-ellis2013nz/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://freerangestats.info/blog/2018/11/24/counting-digits"> free range statistics - R</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<h2>Counting digits appearing in page numbers</h2>
<p>The other day in a training session, the facilitators warmed people up into intellectual work with this group exercise:</p>
<ul>
<li>Count the number of times the digit “1” appears in the page numbers of a 90 page book.</li>
<li>Then, count the number of times it appears in the page numbers of a 2,000 page book.</li>
</ul>
<p>(Actual numbers vary slightly from those used so I don’t just give away the answers).</p>
<p>The first task is easy enough; you can pretty much count them in your head (something like “1, 2, 3-4, plus 8 equals 12, plus 7 equals 19” – if you follow me). The second task is obviously harder and the aim was to illustrate the need to break down more complicated problems into a structure for a solution.</p>
<p>But the alternative message that occurred to me of course is that “this is why we invented computers isn’t it?”. Here’s the one-liner in R that answers the second question, about the 2,000 page book:</p>
<figure>
<pre><code data-lang="r"><span>length</span><span>(</span><span>stringr</span><span>::</span><span>str_extract_all</span><span>(</span><span>paste</span><span>(</span><span>1</span><span>:</span><span>2000</span><span>,</span><span> </span><span>collapse</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>),</span><span> </span><span>pattern</span><span> </span><span>=</span><span> </span><span>&quot;1&quot;</span><span>,</span><span> </span><span>simplify</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>))</span></code></pre>
</figure>
<p>Basically, starting from the middle, this tells the computer:</p>
<ul>
<li>make a vector of all the numbers from 1 to 2,000</li>
<li>collapse them all into a single big character string</li>
<li>extract all the digits “1” from that string into a new vector which each element is just the extracted “1”</li>
<li>count the length of that vector</li>
</ul>
<p>The answer is 1,600.</p>
<p>What about if we wanted to generalise this though – for more page numbers, and different digits? After the training session was over, I had a go at this. For the sake of efficiency and speed, I treated this as a slightly different problem and I solved it with the help of the <code>count_digits</code> function defined below which extracts the number of times a digit appears in a given page number; and then we use cumulative sums to get the eventual result for books of different lengths with minimal duplication of calculations.</p>
<p>Here’s the code to do this, and its application to a book of 2,500 pages, for all digits.</p>
<figure>
<pre><code data-lang="r"><span># more considered approach
</span><span>library</span><span>(</span><span>tidyverse</span><span>)</span><span>
</span><span>library</span><span>(</span><span>scales</span><span>)</span><span>
</span><span>library</span><span>(</span><span>testthat</span><span>)</span><span>
</span><span>library</span><span>(</span><span>stringr</span><span>)</span><span>
</span><span>library</span><span>(</span><span>gridExtra</span><span>)</span><span>
</span><span>count_digits</span><span> </span><span>&lt;-</span><span> </span><span>function</span><span>(</span><span>data</span><span>,</span><span> </span><span>page_number</span><span>){</span><span>
</span><span>length</span><span>(</span><span>stringr</span><span>::</span><span>str_extract_all</span><span>(</span><span>paste</span><span>(</span><span>data</span><span>,</span><span> </span><span>collapse</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>),</span><span> </span><span>pattern</span><span> </span><span>=</span><span> </span><span>as.character</span><span>(</span><span>page_number</span><span>),</span><span> </span><span>simplify</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>))</span><span>
</span><span>}</span><span>
</span><span># test that it still gets the known result for 2000 pages:
</span><span>expect_equal</span><span>(</span><span>sum</span><span>(</span><span>Vectorize</span><span>(</span><span>count_digits</span><span>)(</span><span>data</span><span> </span><span>=</span><span> </span><span>1</span><span>:</span><span>2000</span><span>,</span><span> </span><span>page_number</span><span> </span><span>=</span><span> </span><span>1</span><span>)),</span><span> </span><span>1600</span><span>)</span><span>
</span><span>#------------2500-------------
</span><span>d</span><span> </span><span>&lt;-</span><span> </span><span>expand.grid</span><span>(</span><span>n</span><span> </span><span>=</span><span> </span><span>1</span><span>:</span><span>2500</span><span>,</span><span> </span><span>digit</span><span> </span><span>=</span><span> </span><span>0</span><span>:</span><span>9</span><span>)</span><span> </span><span>d</span><span>$</span><span>freq</span><span> </span><span>&lt;-</span><span> </span><span>apply</span><span>(</span><span>d</span><span>,</span><span> </span><span>1</span><span>,</span><span> </span><span>function</span><span>(</span><span>x</span><span>){</span><span>count_digits</span><span>(</span><span>x</span><span>[</span><span>1</span><span>],</span><span> </span><span>x</span><span>[</span><span>2</span><span>])})</span><span>
</span><span>d</span><span> </span><span>&lt;-</span><span> </span><span>d</span><span> </span><span>%>%</span><span>
</span><span>group_by</span><span>(</span><span>digit</span><span>)</span><span> </span><span>%>%</span><span>
</span><span>mutate</span><span>(</span><span>cum_freq</span><span> </span><span>=</span><span> </span><span>cumsum</span><span>(</span><span>freq</span><span>))</span><span>
</span><span>d</span><span> </span><span>%>%</span><span>
</span><span>ggplot</span><span>(</span><span>aes</span><span>(</span><span>x</span><span> </span><span>=</span><span> </span><span>n</span><span>,</span><span> </span><span>y</span><span> </span><span>=</span><span> </span><span>cum_freq</span><span>,</span><span> </span><span>colour</span><span> </span><span>=</span><span> </span><span>as.factor</span><span>(</span><span>digit</span><span>)))</span><span> </span><span>+</span><span>
</span><span>geom_line</span><span>()</span><span> </span><span>+</span><span>
</span><span>geom_text</span><span>(</span><span>data</span><span> </span><span>=</span><span> </span><span>filter</span><span>(</span><span>d</span><span>,</span><span> </span><span>n</span><span> </span><span>==</span><span> </span><span>max</span><span>(</span><span>n</span><span>)),</span><span> </span><span>aes</span><span>(</span><span>label</span><span> </span><span>=</span><span> </span><span>digit</span><span>),</span><span> </span><span>hjust</span><span> </span><span>=</span><span> </span><span>0</span><span>)</span><span> </span><span>+</span><span>
</span><span>theme</span><span>(</span><span>legend.position</span><span> </span><span>=</span><span> </span><span>&quot;none&quot;</span><span>)</span><span> </span><span>+</span><span>
</span><span>scale_x_continuous</span><span>(</span><span>&quot;Pages in book&quot;</span><span>,</span><span> </span><span>label</span><span> </span><span>=</span><span> </span><span>comma</span><span>)</span><span> </span><span>+</span><span>
</span><span>scale_y_continuous</span><span>(</span><span>&quot;Number of occurrences of digit in page number&quot;</span><span>,</span><span> </span><span>label</span><span> </span><span>=</span><span> </span><span>comma</span><span>)</span><span> </span><span>+</span><span>
</span><span>scale_colour_brewer</span><span>(</span><span>palette</span><span> </span><span>=</span><span> </span><span>&quot;Spectral&quot;</span><span>)</span><span> </span><span>+</span><span>
</span><span>ggtitle</span><span>(</span><span>&quot;Occurrence of digits in numbers in a simple sequence&quot;</span><span>,</span><span>
</span><span>&quot;How many times does each digit appear in the page number of a book of different lengths&quot;</span><span>)</span></code></pre>
</figure>
<p>It’s quite a pretty pattern:</p>
<p><img width="100%" src="http://freerangestats.info/img/0140-2500-results.svg"></p>
<p>When we get a book of 75,000 pages it gets even prettier:</p>
<p><img src="https://i0.wp.com/freerangestats.info/img/0140-75000-results.png?w=100%25" data-recalc-dims="1"></p>
<p>(Code not shown as it’s basically identical to the 2,500 page case).</p>
<p>Funnily enough, after doing the thinking above, I found out that one of my work colleagues who had done the same training session a few months earlier had reacted almost identically, in using a computer to count the results. If you’re at all interested in counting the digits appearing in page numbers, I thoroughly recommend <a rel="nofollow" href="https://paul-geil.shinyapps.io/DigitCounter/" target="_blank">Paul Geil’s DigitCounter Shiny app</a> that he built in response.</p>
<h2>Benford’s law</h2>
<p>All this digit counting reminded me that I’d wanted to look into <a rel="nofollow" href="https://en.wikipedia.org/wiki/Benford%27s_law" target="_blank">“Benford’s ‘law’”</a> at some point, and prompted me to make today the day. Benford observed that the frequency distribution of the leading digit in many real-life sets of numerical data follows a pattern. 1 appears as the first digit about 30.1% of the time, 2 17.6%, and so on.</p>
<p>If Benford’s law applies to a series of numbers, the probability of a number beginning with the digit d is:</p>
<p></p>
<p>Benford wasn’t the first person to notice this, although he did go into it particularly systematically. The reasons why it applies are interesting but I won’t go into them, they’re nicely explained in the Wikipedia page. Obviously in fact it is not always going to apply; for instance, the leading digits of the page numbers of a book aren’t going to follow this distribution. It does apply often enough though to be useful in detecting fraud (although in practice, automated fraud detection should use much more than this).</p>
<p>Benford’s law comes closer to application in distributions where the data cover at least two orders of magnitude. Take a look at these examples:</p>
<p><img width="100%" src="http://freerangestats.info/img/0140-benford-sim.svg"></p>
<p>The normal distribution isn’t a bad fit because it covers a couple of orders of magnitude (lots of data in 0-1, some in the 1-10 range), but the best fits are the distributions with fatter tails in at least one direction, like the log-normal and the Cauchy.</p>
<p>Those simulations were measured with the <code>count_first_digit</code> function below:</p>
<figure>
<pre><code data-lang="r"><span>#================Benford's 'law'============
</span><span>
</span><span>#-----------set up---------------
</span><span>#' Function to draw a chart of frequency of first digits and compare to that predicted by Benford's 'law'
#' #' @param x a univariate numeric vector
#' @param desc description of x to use as subtitle #' Other parameters are self-explanatory
#' #' See https://en.wikipedia.org/wiki/Benford%27s_law
</span><span>count_first_digit</span><span> </span><span>&lt;-</span><span> </span><span>function</span><span>(</span><span>x</span><span>,</span><span> </span><span>desc</span><span>,</span><span> </span><span>main_title</span><span> </span><span>=</span><span> </span><span>&quot;Frequency of first digits&quot;</span><span>,</span><span> </span><span>seed</span><span> </span><span>=</span><span> </span><span>123</span><span>,</span><span> </span><span>legend.position</span><span> </span><span>=</span><span> </span><span>&quot;none&quot;</span><span>,</span><span> </span><span>bottom_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;Leading digit&quot;</span><span>){</span><span>
</span><span>set.seed</span><span>(</span><span>seed</span><span>)</span><span>
</span><span># Extract the first digit from 1 to 9
</span><span> </span><span>y</span><span> </span><span>&lt;-</span><span> </span><span>as.character</span><span>(</span><span>x</span><span>)</span><span>
</span><span>y</span><span> </span><span>&lt;-</span><span> </span><span>str_extract</span><span>(</span><span>y</span><span>,</span><span> </span><span>&quot;[1-9]&quot;</span><span>)</span><span>
</span><span>refs</span><span> </span><span>&lt;-</span><span> </span><span>data_frame</span><span>(</span><span>
</span><span>digit</span><span> </span><span>=</span><span> </span><span>1</span><span>:</span><span>9</span><span>,</span><span>
</span><span>`Benford's law`</span><span> </span><span>=</span><span> </span><span>log10</span><span>(</span><span>1</span><span> </span><span>+</span><span> </span><span>(</span><span>1</span><span>/</span><span>1</span><span>:</span><span>9</span><span>))</span><span>
</span><span>)</span><span>
</span><span>z</span><span> </span><span>&lt;-</span><span> </span><span>table</span><span>(</span><span>y</span><span>)</span><span>
</span><span>p</span><span> </span><span>&lt;-</span><span> </span><span>data_frame</span><span>(</span><span>digit</span><span> </span><span>=</span><span> </span><span>as.numeric</span><span>(</span><span>names</span><span>(</span><span>z</span><span>)),</span><span>
</span><span>freq</span><span> </span><span>=</span><span> </span><span>as.numeric</span><span>(</span><span>z</span><span>))</span><span> </span><span>%>%</span><span>
</span><span>mutate</span><span>(</span><span>freq</span><span> </span><span>=</span><span> </span><span>freq</span><span> </span><span>/</span><span> </span><span>sum</span><span>(</span><span>freq</span><span>))</span><span> </span><span>%>%</span><span>
</span><span>rename</span><span>(</span><span>`Observed`</span><span> </span><span>=</span><span> </span><span>freq</span><span>)</span><span> </span><span>%>%</span><span>
</span><span>right_join</span><span>(</span><span>refs</span><span>,</span><span> </span><span>by</span><span> </span><span>=</span><span> </span><span>&quot;digit&quot;</span><span>)</span><span> </span><span>%>%</span><span>
</span><span>gather</span><span>(</span><span>variable</span><span>,</span><span> </span><span>value</span><span>,</span><span> </span><span>-</span><span>digit</span><span>)</span><span> </span><span>%>%</span><span>
</span><span>ggplot</span><span>(</span><span>aes</span><span>(</span><span>x</span><span> </span><span>=</span><span> </span><span>as.ordered</span><span>(</span><span>digit</span><span>),</span><span> </span><span>y</span><span> </span><span>=</span><span> </span><span>value</span><span>,</span><span> </span><span>fill</span><span> </span><span>=</span><span> </span><span>variable</span><span>))</span><span> </span><span>+</span><span>
</span><span>geom_col</span><span>(</span><span>position</span><span> </span><span>=</span><span> </span><span>&quot;dodge&quot;</span><span>)</span><span> </span><span>+</span><span>
</span><span>coord_flip</span><span>()</span><span> </span><span>+</span><span>
</span><span>scale_fill_manual</span><span>(</span><span>&quot;&quot;</span><span>,</span><span> </span><span>values</span><span> </span><span>=</span><span> </span><span>c</span><span>(</span><span>&quot;grey85&quot;</span><span>,</span><span> </span><span>&quot;darkblue&quot;</span><span>),</span><span>
</span><span>guide</span><span> </span><span>=</span><span> </span><span>guide_legend</span><span>(</span><span>reverse</span><span> </span><span>=</span><span> </span><span>TRUE</span><span>))</span><span> </span><span>+</span><span>
</span><span>ggtitle</span><span>(</span><span>main_title</span><span>,</span><span>
</span><span>desc</span><span>)</span><span> </span><span>+</span><span>
</span><span>labs</span><span>(</span><span>x</span><span> </span><span>=</span><span> </span><span>left_lab</span><span>,</span><span> </span><span>y</span><span> </span><span>=</span><span> </span><span>bottom_lab</span><span>)</span><span> </span><span>+</span><span>
</span><span>theme</span><span>(</span><span>legend.position</span><span> </span><span>=</span><span> </span><span>legend.position</span><span>)</span><span>
</span><span>return</span><span>(</span><span>p</span><span>)</span><span> </span><span>}</span><span>
</span><span>#---------------with simulated distributions---------------------
</span><span>n</span><span> </span><span>&lt;-</span><span> </span><span>1000000</span><span>
</span><span>p</span><span>1</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>rnorm</span><span>(</span><span>n</span><span>),</span><span> </span><span>&quot;Standard normal distribution&quot;</span><span>,</span><span> </span><span>legend.position</span><span> </span><span>=</span><span> </span><span>c</span><span>(</span><span>0.7</span><span>,</span><span> </span><span>0.7</span><span>),</span><span>
</span><span>main_title</span><span> </span><span>=</span><span> </span><span>&quot;Frequency of first digits, simulated&quot;</span><span>)</span><span>
</span><span>p</span><span>2</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>exp</span><span>(</span><span>rnorm</span><span>(</span><span>n</span><span>)),</span><span> </span><span>&quot;Standard log-normal distribution&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>3</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>runif</span><span>(</span><span>n</span><span>,</span><span> </span><span>0</span><span>,</span><span> </span><span>1</span><span>),</span><span> </span><span>&quot;Standard uniform distribution&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>4</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>runif</span><span>(</span><span>n</span><span>,</span><span> </span><span>-85</span><span>,</span><span> </span><span>85</span><span>),</span><span> </span><span>&quot;[-85, 85] uniform distribution&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>5</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>rgamma</span><span>(</span><span>n</span><span>,</span><span> </span><span>2</span><span>),</span><span> </span><span>&quot;Gamma distribution with shape 1, rate 1&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>bottom_lab</span><span> </span><span>=</span><span> </span><span>&quot;Frequency&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>6</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>rcauchy</span><span>(</span><span>n</span><span>),</span><span> </span><span>&quot;Standard Cauchy distribution&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>grid.arrange</span><span>(</span><span>p</span><span>1</span><span>,</span><span> </span><span>p</span><span>2</span><span>,</span><span> </span><span>p</span><span>3</span><span>,</span><span> </span><span>p</span><span>4</span><span>,</span><span> </span><span>p</span><span>5</span><span>,</span><span> </span><span>p</span><span>6</span><span>,</span><span> </span><span>ncol</span><span> </span><span>=</span><span> </span><span>3</span><span>)</span></code></pre>
</figure>
<p>Having built that function, I tried out Benford’s law on some famous datasets built into R. The results are illuminating I think:</p>
<p><img width="100%" src="http://freerangestats.info/img/0140-benford-real.svg"></p>
<p>Only the closing prices of stock indices comees close to following the predicted pattern. The failure of the law to apply is partly because of smallish sample sizes but mostly because these datasets all cover too small a range of results for the first digit law to apply. For example, the monthly road casualty dataset is mostly in the low 100s, with an occasional value in the 90s or 80s. So the first digit law doesn’t apply. But I’m pretty sure that if we compared the monthly road casualties of many different countries, it would be a much closer fit.</p>
<p>When the data is from multiple diverse units of observation and hence covers several orders of magnitude, the law is much more likely to apply. For example, consider the <code>population</code> data set in <code>tidyr</code> package, a subset of World Health Organization tuberculosis data:</p>
<p><img width="100%" src="http://freerangestats.info/img/0140-benford-population.svg"></p>
<p>We see quite a close match.</p>
<p>The take-home story is to not expect the first-digit law, or Benford’s law, to apply unless you’ve got the right sort of data for it – data that ranges across several orders of magnitude.</p>
<p>Here’s the code that produced those real life tests of Benford’s law.</p>
<figure>
<pre><code data-lang="r"><span>#--------with some real datasets----------
</span><span>p</span><span>1</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>AirPassengers</span><span>,</span><span> </span><span>&quot;Monthly Airline Passenger Numbers\n1949-1960&quot;</span><span>,</span><span> </span><span>main_title</span><span> </span><span>=</span><span> </span><span>&quot;Frequency of first digits, real data&quot;</span><span>,</span><span>
</span><span>legend.position</span><span> </span><span>=</span><span> </span><span>c</span><span>(</span><span>0.7</span><span>,</span><span> </span><span>0.7</span><span>))</span><span>
</span><span>p</span><span>2</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>BJsales</span><span>,</span><span> </span><span>&quot;\nBox &amp; Jenkins Sales Data&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>3</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>CO2</span><span>$</span><span>uptake</span><span>,</span><span> </span><span>&quot;\nCarbon dioxide uptake in Grass Plants&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>4</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>EuStockMarkets</span><span>,</span><span> </span><span>&quot;Daily Closing Prices of Major European\nStock Indices, 1991-1998&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>5</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>Seatbelts</span><span>[</span><span> </span><span>,</span><span> </span><span>&quot;DriversKilled&quot;</span><span>],</span><span> </span><span>&quot;\nRoad Casualties in Great Britain 1969-84&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>p</span><span>6</span><span> </span><span>&lt;-</span><span> </span><span>count_first_digit</span><span>(</span><span>morley</span><span>[,</span><span> </span><span>&quot;Speed&quot;</span><span>],</span><span> </span><span>&quot;\nSpeed of light estimated by Michelson&quot;</span><span>,</span><span> </span><span>&quot;&quot;</span><span>,</span><span> </span><span>left_lab</span><span> </span><span>=</span><span> </span><span>&quot;&quot;</span><span>)</span><span>
</span><span>grid.arrange</span><span>(</span><span>p</span><span>1</span><span>,</span><span> </span><span>p</span><span>2</span><span>,</span><span> </span><span>p</span><span>3</span><span>,</span><span> </span><span>p</span><span>4</span><span>,</span><span> </span><span>p</span><span>5</span><span>,</span><span> </span><span>p</span><span>6</span><span>,</span><span> </span><span>ncol</span><span> </span><span>=</span><span> </span><span>3</span><span>)</span><span>
</span><span>count_first_digit</span><span>(</span><span>population</span><span>$</span><span>population</span><span>,</span><span> </span><span>&quot;National population figures&quot;</span><span>)</span></code></pre>
</figure>
	<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://freerangestats.info/blog/2018/11/24/counting-digits"> free range statistics - R</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 rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/YAyPosdDtzA" height="1"></a></div>