<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/why-r-is-the-best-data-science-language-to-learn-today/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://sharpsightlabs.com/blog/r-recommend-data-science/"> r-bloggers – SHARP SIGHT LABS</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>In last week’s blog, I explained <a href="http://sharpsightlabs.com/blog/master-r-obsolete/">why you should Master R</a> (even if it may eventually become obsolete). </p>
<p>I wrote that article to address people who claim mastering R is a bit of a waste of time (because it will eventually become obsolete).</p>
<p>But when I suggested that R may <i>eventually</i> become obsolete, this seemed to provoke fear that R <i>is</i> becoming obsolete right now.</p>
<p>I want to allay your fears: R is still <i>very</i> popular. </p>
<p>R has been one of the fastest growing programming languages of the last decade. </p>
<p>In fact, if you’re <a href="http://sharpsightlabs.com/blog/start-with-data-visualization-manipulation/">getting started with data science</a>, it’s still the <a href="https://www.r-bloggers.com/why-r-is-the-best-data-science-language-to-learn-today/sharpsightlabs.com/blog/learn-r-data-science/">language that I recommend</a>.</p>
<p>So, I want to reassure you. R is definitely not obsolete. In fact, R is extremely popular and a best-in class data language.</p>
<p>To that end, I want to explain all of the reasons why I’m very optimistic about R’s long term prospects, and why I think it’s perhaps <b>the best data science language to learn today</b>.</p>
<h2>R consistently ranks among the best languages </h2>
<p>One thing I want you to understand is that right now, R is one of the most highly regarded, highly ranked, and fastest growing languages in existence.</p>
<p>In many ways, R is <i>the</i> data language. In data science, it’s the language to beat (with only 1 or 2 serious contenders).</p>
<p>To understand why this is true, let’s look at the results of several important surveys and programming language rankings to see where R shakes out.</p>
<h3>IEEE: R ranks #5</h3>
<p>The world’s “largest association of technical professionals,” the IEEE, has created a ranking of programming languages for several years.</p>
<p>This IEEE ranking system uses a set of 12 metrics, including things like Google search volume, Google trends, Twitter hits, Github repositories, Hacker News posts, and more. </p>
<p>Using this methodology, they rank several dozen programming languages and place them into several categories.</p>
<p>In their review of the “Top Programming Languages” of 2016, R climbed to #<a href="http://spectrum.ieee.org/computing/software/the-2016-top-programming-languages">5</a>. </p>
<p>The IEEE methodology is quite comprehensive, so this is a strong indicator of R’s strength compared to other languages, and the relative value of learning R.</p>
<h3>TIOBE: R ranks high with consistent upward trend</h3>
<p>Another ranking system, the TIOBE index, creates a similar score and rank for various programming languages. </p>
<p>If we look at R’s performance on the <null href="http://www.tiobe.com/tiobe-index/">TIOBE index, we can see a solid upward trend for almost a decade.
<p><a target="_blank" rel="nofollow" href="http://sharpsightlabs.com/join-newsletter-rapid-mastery/"><img sizes="(max-width: 619px) 100vw, 619px" alt="" class="wp-image-2978" src="https://i1.wp.com/sharpsightlabs.com/wp-content/uploads/2016/12/r-lang-popularity-increase.png?resize=456%2C291" data-recalc-dims="1"></a></p>
<p>Keep in mind that the TIOBE index is structured to be “<i>an indicator of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. Popular search engines such as Google, Bing, Yahoo!, Wikipedia, Amazon, YouTube and Baidu are used to calculate the ratings.</i>”</p>
<p>For December 2016, R has an overall rank of 17 (among all programming languages). Its maximum rank was #12 in May of 2015.</p>
<p>This suggests that currently, learning R is still an excellent option if you <a href="http://sharpsightlabs.com/blog/how-to-start-learning-data-science/">want to learn data science</a>. It may arguably be the best option. (To be clear, Python ranks higher on the TIOBE index, but it’s harder to separate out web and software dev uses of Python from the strictly data-related uses of Python, so it may not be an apples to apples comparison.)</p>
<h3>Redmonk: R is #12</h3>
<p>Another frequently sited language ranking system is the Redmonk Programming Language Rankings, which are derived from popularity on GitHub (lines of code) and popularity on Stack Overflow (number of tags).</p>
<p>As of November 2016, R ranks number <a href="http://redmonk.com/blog/2016/11/22/the-redmonk-programming-language-rankings-january-2016/">13</a> among all programming languages.</p>
<p>Moreover, R has shown a consistent upward trend for several years:</p>
<blockquote><p>Out of all the back half of the Top 20 languages, <b>R has shown the most consistent upwards movement over time</b>. From its position of 17 back in 2012, it has made steady gains over time, but had seemed to stall at 13 having stuck there for three consecutive quarters. This time around, however, R took over #12 from Perl which in turn dropped to #13. There’s still an enormous amount of Perl in circulation, but the fact that the more specialized R has unseated the language once considered the glue of the web says as much about Perl as it does about R. Which is irrelevant to R advocates, of course. Whatever the cause, R’s relatively unique Top 20 path is one for fans of the language to cheer.</p>
<p>– RedMonk Programming Language Rankings: June 2016<br>
(emphasis mine)
</p>
</blockquote>
<h3>O’Reilly: R is arguably the most common data programming language</h3>
<p>Finally, O’Reilly media has conducted a data science survey for the last several years, and they use the survey data to analyze data science trends. Among other things, they analyzed tool usage to identify which tools are most commonly used by data scientists. </p>
<p>In the 2016 survey report, R was the most common programming language (if we exclude SQL, which isn’t a programming language in the sense that I’m using it here). 57% of all respondents used R (compared to 54% using Python). </p>
<p>(As a side note, fully 70% of respondents used SQL. If you’re looking for another tool to learn after R, I’d suggest SQL.)</p>
<p>They also surveyed people to identify <a href="https://www.r-bloggers.com/why-r-is-the-best-data-science-language-to-learn-today/sharpsightlabs.com/blog/data-visualizations-are-tools-and-what-youre-building/">data visualization</a> tools. They found that <b> was the most common visualization tool</b>. I’ll explain why I love  in an upcoming blog post, but if we’re only tracking popularity, the O’Reilly survey suggests that  is highly used (if not best in class).</p>
<h2>R is excellent for <i>learning</i> data science</h2>
<p>Beyond popularity, another reason that R is an excellent data science programming language is that it is <a href="http://sharpsightlabs.com/blog/how-to-start-learning-data-science/">excellent for <u>learning</u> data science</a>.</p>
<h3>R is a true “data language”</h3>
<p>Part of the reason for this, is the nature of the language itself.</p>
<p>R was ultimately created with statistics and data in mind. The R-Project describes R as a “[programming] language and environment for <i>statistical computing</i>” (emphasis mine). </p>
<p>R is a language that has statistics and data built into its DNA, so to speak. </p>
<p>In this sense, R is nearly unique among programming languages. It is a language that has been <i>built for statistics</i>. It’s been designed for <i>data</i>.</p>
<p>This has advantages when you’re learning data science, because almost any statistical test or technique can be found somewhere within base R or one of its packages.</p>
<h3>The best books and resources use R</h3>
<p>Related to the fact that R is a “statistical computing” language is the fact that many of the best books and learning materials have adopted R as the language of choice. </p>
<p>This is important. If you’re a beginner, and you’re just getting started in data science, you’ll have <i>a lot to learn</i>. To truly master data science, you’ll need to learn several sub-areas like probability, statistics, data visualization, <a href="http://sharpsightlabs.com/blog/dplyr-intro-data-manipulation-with-r/">data manipulation</a>, and <a href="http://sharpsightlabs.com/blog/machine-learning-google-rethink/">machine learning</a>. All of these skill areas have theoretical foundations (which you’ll need to learn) but also practical techniques that you’ll need to execute by writing code.</p>
<p>That means that:</p>
<ol>
<li>You need a language that has strong capabilities in each of these areas (visualization, manipulation, <a href="http://sharpsightlabs.com/blog/quick-introduction-machine-learning-r-caret/">machine learning (AKA statistical learning)</a>, etc)</li>
<li>You need a language for which there are high quality training materials in these skill areas.</li>
</ol>
<p>While there are many data-related books and courses out there, but many of the best ones are centered on the R programming language.</p>
<h3>Learn Probability with R</h3>
<p>For example, two excellent books on probability use R for their “hands on” programming examples.</p>
<p>The first is <a href="https://www.amazon.com/Probability-Applications-Robert-P-Dobrow/dp/1118241258/"> Probability with Applications and R</a>. This book is very approachable, readable, and well organized.</p>
<p>The second is <a href="https://www.amazon.com/Introduction-Probability-Chapman-Statistical-Science/dp/1466575573">Introduction to Probability</a> which was developed from highly regarded statistics lectures at Harvard.</p>
<p>These are just two examples. If you dig deeper, you’ll find that among probability books that use a programming language, many (if not most) of them use R.</p>
<h3>Learn frequentist statistics with R</h3>
<p>The same can be said for statistics books.</p>
<p>Because R has statistics “built into its DNA,” many statistics textbooks use R as a learning tool.</p>
<p>For an introductory look at frequentist statistics, here’s one excellent book:</p>
<ul>
<li><a href="https://www.amazon.com/Statistics-Introduction-Michael-J-Crawley-ebook/dp/B00NWD87OS/"> Statistics: an Introduction using R</a></li>
</ul>
<p>Again, if you do a quick search on Amazon, and look at many intro stats books, you’ll find that if they use any programming language as a teaching tool, they are more likely to use R than almost any other language.</p>
<h3>Learn Bayesian statistics with R</h3>
<p>This becomes even more pronounced if you want a hands-on book for learning Bayesian statistics. </p>
<p>If you want to learn Bayesian stats and Bayesian analysis, nearly all of the books use R. There are some exceptions, like a few books that teach Bayesian analysis in C or Python, but overwhelmingly the best books that teach Bayesian statistics use R.</p>
<p>If you’re interested in Bayesian stats, check out these:</p>
<ul>
<li><a href="https://www.amazon.com/Introduction-Bayesian-Statistics-William-Bolstad-ebook/dp/B01LIE5GI2/">Introduction to Bayesian Statistics</a></li>
<li><a href="https://www.amazon.com/Statistical-Rethinking-Bayesian-Examples-Chapman/dp/1482253445/">Statistical Rethinking</a></li>
<li><a href="https://www.amazon.com/Doing-Bayesian-Data-Analysis-Tutorial-ebook/dp/B00PYZ2VR6/">Doing Bayesian Data Analysis</a></li>
</ul>
<p>If you’re interested in Bayesian methods, these books are “best in class,” and they all use R.</p>
<h3>Learn Data Visualization in R</h3>
<p>When you’re <a href="http://sharpsightlabs.com/blog/start-with-data-visualization-manipulation/">learning data visualization</a>, there’s a slightly larger range of programming languages to choose from, but I still maintain that most of the best learning materials use R.</p>
<p>If you’re learning data visualization, I highly recommend the work of Nathan Yau. His blog, flowingdata.com, frequently has data visualization tutorials for the R programming language. (I also recommend his book <a href="https://www.amazon.com/Data-Points-Visualization-Means-Something-ebook/dp/B00C2WKEFK">Data Points</a> as a companion, though it teaches principles as opposed to programing language syntax.)</p>
<p>I also highly recommend several books by Hadley Wickham. First, if you’re interested in data visualization in R, you need to own the book <a href="https://www.amazon.com/ggplot2-Elegant-Graphics-Data-Analysis-ebook/dp/B01GVCRF6M/"></a>. It not only teaches you the syntax of this critical R data visualization library, but it will also reshape how you think about visualizing your data.</p>
<p>I also recommend <a href="https://www.amazon.com/Data-Science-Transform-Visualize-Model-ebook/dp/B01NAJAEN5/">R for Data Science</a>. This book provides a great introduction to data visualization, but additionally teaches you a broad set of data tools in R. It’s excellent, and a “must own” R book.</p>
<h3>Learn machine learning with R</h3>
<p>Finally, if you want to <a href="https://www.r-bloggers.com/why-r-is-the-best-data-science-language-to-learn-today/sharpsightlabs.com/blog/quick-introduction-machine-learning-r-caret/">get started with machine learning</a>, many of best machine learning books use R.</p>
<p>Although I will acknowledge that there’s more diversity among ML books with regard to their programming language, I still maintain that many of the best ones use R.</p>
<p>Here are two excellent introductions to machine learning that teach ML using the R programming language.</p>
<ol>
<li><a target="_blank" rel="nofollow" href="https://www.amazon.com/Introduction-Statistical-Learning-Applications-Statistics/dp/1461471370/">An Introduction to Statistical Learning</a></li>
<li><a target="_blank" rel="nofollow" href="https://www.amazon.com/Applied-Predictive-Modeling-Max-Kuhn-ebook/dp/B00K15TZU0/">Applied Predictive Modeling</a></li>
</ol>
<p>These books are both rigorous while still being approachable. They will teach you a little bit of theory (but not overwhelm you with math) while also showing you practical techniques.</p>
<p>Without question, these are the two books that I recommend most often for a beginner who wants to learn machine learning, and they both use R.</p>
<p><h3>If you want to <i>learn</i> data science, R is excellent</h3>
<p>Ultimately, the point here is that R is an excellent language for learning data science, because many of the best books (and other training materials) use R as the programming language of choice. </p>
<p>So if you’re a beginner in data science, I think that R is the best language – in large part – because of the quantity and quality of data-science learning materials.</p>
<h2>A quick note on Python</h2>
<p>There are other options, but the only one I’ll address here is Python.</p>
<p>As far as data science programming languages go, Python is the only serious alternative to R right now. (Other alternatives lack a well-developed package ecosystem or are not free/open source.)</p>
<p>I won’t explain my full thoughts on Python here, but I will say that it’s an excellent language. I love Python. </p>
<p>Having said that, for data science beginners, I still think that R is a slightly better choice, largely for the reasons I outlined above. </p>
<p>Again, I think that many of the best textbooks and training materials for foundational data science concepts (probability, statistics, Bayesian statistics, machine learning) are R-based books. That’s not to say that there aren’t excellent data science books that use Python, but I still think that there is a higher average quality among the R-based texts.</p>
<p>The other issue with Python is that many students get caught up in software development. That is, instead of learning statistics, data visualization, data manipulation, probability, etc, they end up spending their time learning about data structures, loops, flow-control, object oriented programming, and web frameworks. These skill areas can <i>complement</i> the core data science toolkit, but they are not data science topics in the sense that I’m using the term here. In fact, I recommend that most beginners learn software development contepts <i>after</i> learning basic data science subjects like data manipulation, visualization, analysis, etc.</p>
<p>Even though most beginners should learn software development principles <i>later</i>, many beginners who start with Python get sidetracked into these software development and web development areas. I think this happens, because in many ways, Python is geared towards these subjects. Most books on Python are not really data science books per se, but instead books on programming, development, etc. So a beginning data science student opens up a Python book <i>intending</i> to learn data science, but they end up going down the software/web development rabbit hole, and don’t come out for a few months (or years).</p>
<p>As much as I love Python, I think this is a risk for beginners. I think it’s better to start with R as it has statistics and data science more “built into its DNA.” With R, it’s easier to learn the foundations, and harder to get sidetracked.</p>
<h2>Recap: Learn R if you want to learn data science</h2>
<p>What you should take away is that for learning data science, R is arguably the best option. In terms of popularity, R is very highly ranked, and on an upward trajectory. Moreover, many of the best data science books and training materials use R.</p>
<p>If you want to get started learning data science, I recommend the following:</p>
<ul>
<li>Learn R</li>
<li>Specifically, learn , , , , and other Hadleyverse tools for data visualization and manipulation</li>
<li>Learn to use these tools together to analyze data</li>
<li>Once you have some background in these essential R packages, bulk up on probability, stats, and machine learning (I recommend the texts that I talk about in this blog post)</li>
</ul>
<h2>Discover how to master R</h2>
<p>Do you want to rapidly <a href="http://sharpsightlabs.com/join-newsletter-rapid-mastery/">master R</a>?</p>
<p>Sign up for the <a href="http://sharpsightlabs.com/join-newsletter-rapid-mastery/">email list at Sharp Sight</a>.</p>
<p>Our posts are devoted to helping you rapidly master R, one of the best programming languages in the world, and possibly the best data science language you can learn.</p>
<p>The post <a target="_blank" rel="nofollow" href="http://sharpsightlabs.com/blog/r-recommend-data-science/">Why R is the best data science language to learn today</a> appeared first on <a target="_blank" rel="nofollow" href="http://sharpsightlabs.com/">SHARP SIGHT LABS</a>.</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://sharpsightlabs.com/blog/r-recommend-data-science/"> r-bloggers – SHARP SIGHT LABS</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/XXzPbLLyIQE"></a></div></null>