The Impressive Growth of R

we tracked down that amount of the growth of Python can be explained by the extension of information science. Since R is primarily utilized for factual examination, almost certainly, R is part of a similar trend. In this post, we’ll break down how rapidly R has grown, examine how its growth differs across industries, and take a gander at what R packages are popular and growing within the biological system.

Like Python, a disproportionate measure of traffic to R addresses comes from top level salary countries (it’s visited around multiple times as regularly in those countries as in the rest of the world), so this post will consider Stack Overflow traffic from major league salary countries, like the United States, United Kingdom, Germany, Canada and France. As a disclaimer, we’ll note that the Data Team at Stack Overflow works primarily in R (indeed, we use it to generate practically the entirety of the graphs and results for Insights posts like this one).

Growth of R

Our previous post about Python’s growth considered visits to Python compared to five other major programming dialects (Java, JavaScript, C#, PHP, and C++) that each make up a generous share of Stack Overflow question visits. R makes up a smaller share than those labels, so we’ll compare its growth to dialects of a similar size

There is no sense wherein R is “competing” with any of these other dialects, which aren’t commonly utilized for information examination. This comparison is shown distinctly to demonstrate that the kind of sustained growth R has shown is rare among dialects of comparable size.

Traffic to C inquiries shows a strong occasional pattern (since it’s perhaps the most widely recognized decisions for undergraduate programming classes), and R has roughly found that degree of traffic. Visits to Swift inquiries grew rapidly after Apple introduced the language in 2014, yet have since evened out off. Typescript, however it’s as yet a smaller source of traffic, has been showing very remarkable growth, and will be the subject of some future investigations. As we found in a previous post, traffic to Ruby and particularly to Objective C have been declining over time.

Projecting future growth of Stack Overflow visits can be tricky, yet according to a STL model it’s reasonable to predict that R will be the seventh most visited programming language tag from big time salary countries in 2018, after Python, Java, JavaScript, C#, PHP, and C++ So, you should learn R Certification to understand it

By industry

What industries visit R questions the most? (This examination is restricted to the United States and United Kingdom, the countries wherein we can fragment our traffic by industry)

R is most visited from universities, where it’s a typical decision for scholarly research, particularly in the sociologies and science. Indeed, in June-July 2017, when most classes aren’t in meeting, R was the second-most visited tag from universities, second just to Python.

The industry with the second-most noteworthy share of R visitors, by a nearby margin, is healthcare. That probably will not come as a surprise to biostatisticians, since R is the apparatus of decision for some factual techniques necessary for clinical investigations and bioinformatics.

One industry that doesn’t visit a ton of R, relative to other advancements, is tech: software and web organizations. (The Data Team here at Stack Overflow is one special case!) This is partly in light of the fact that information investigation makes up a relatively little portion of the industry’s Stack Overflow visits, compared to software and web advancement. We separately found that pandas, an information science framework for Python, was less visited in tech than it was in practically any remaining industries. In any case, it recommends that the manner in which we use R in our group isn’t the regular use case for the language

R isn’t shrinking within any industry, however visits to R are generally growing faster in industries where it was already more vigorously visited, including showing very rapid growth in scholarly community and healthcare. This graph likewise confirms what we found in a previous investigation, that R is both disproportionately visited and quickly developing in the government sector. We additionally see that it’s relatively broadly utilized, and expanding, in consulting and insurance. Each of these are industries where information investigation and representation assume a disproportionate part, relative to software and web improvement.

One of the areas where we don’t see a lot of growth is tech, confirming that the majority of R’s development appears to occur outside of the software and web industry. Since in that industry we saw an increase in visits to Python information science frameworks like pandas and NumPy, it’s a reasonable end that Python is becoming a more popular decision for information science within those organizations.

R Packages

For the situation of Python, we were interested in what particular utilizations of the language had been driving its growth, like information science, web advancement, and framework administration. R is to a lesser extent a mystery: its primary purpose has consistently been measurable examination, machine learning, and information representation. However, we’re actually interested in the thing trends are happening within the R biological system.

To examine this, we extracted what R packages were utilized in particular inquiries and answers. We extracted this from our public R Questions dataset facilitated on Kaggle, containing all (non-erased) questions and answers with the R tag. This Kaggle kernel shows how we parsed the information, including examining employments of the library() and require() capacities

A considerable lot of the most generally referenced packages were written by Hadley Wickham, with his packages making up 7 of the main 10 (the others being data.table, shiny, and zoo). It’s worth noting that this metric might be shifted towards the most confusing packages rather than essentially the most broadly utilized. However, running this on the most widely recognized packages referenced in answers, not simply questions, prompts a very similar show (you can try it yourself!), meaning this is a reasonably dedicated representation of the packages R developers find valuable in their work.

This information can likewise give us insight into the quickest developing packages. We’ll measure this over time in terms of the percentage of inquiries where either the inquiry makes reference to the bundle, or one of its answers does. Since R inquiries in general are becoming more typical, we’re examining the progressions just as a share of the R environment: the majority of these packages are growing in terms of raw numbers

We can observe a few trends in the utilization of R packages. For instance:

ggplot2 has consistently been involved in a considerable portion of inquiries and answers, however its frequency has been marginally declining since the early years of the site.

The data.table and particularly dplyr packages showed rapid growth during Stack Overflow’s lifetime, which has evened out off over the most recent two years. The interactive web framework Shiny has additionally shown some significant growth since its introduction in 2012.

We can see changes in like manner devices for solving problems. The plyr and reshape2 packages rose in frequency from around 2009 to 2013, at that point declined afterwards when Wickham replaced them with the newer dplyr and tidyr packages.

Older packages like zoo, xml, and grid have been consistent or gradually declining as a share of inquiries.

Another approach to imagine growth is to spread out R packages in a network, in light of what pairs of packages would in general be utilized in Stack Overflow answers on similar inquiries. This gives a feeling of what groups of packages will in general take care of similar problems

This spreads out the environment of R packages dependent on a couple smaller subnetworks. Perception packages generally wound up on the lower left, largely splitting into three clusters: grid graphics (centered around ggplot2), geographical representation (including the sp, maps and maptools packages) and interactive representation (with shiny, plotly, DT and htmlwidgets making up a portion of the more striking hubs). In the center of the biological system we see a cluster for information transformation, including dplyr, data.table, and purrr. Other clusters are characterized by text control (stringr, tm), performance advancement (Rcpp, microbenchmark) and time series (lubridate, zoo).

By the definition we picked, most “growth” is centered in newer packages that have a lot of room to grow, for example, the tidyverse bundle (introduced just a year ago). That implies blue regions of the biological system don’t represent “stale” areas, but instead regions that have already had their share of inquiries posed. All things considered, it’s interesting to see that by this definition, two major areas of growth in the biological system are information transformation and interactivity. We’d generally agree from our experience in the R people group that these are two areas with loads of recent innovation


Since we use R in the Stack Overflow Data Team, we certainly appreciated examining how the R environment is changing, and seeing that it’s been a part of the rapid development of the information science field. In general, the number of users of a language isn’t directly related to its popularity. Be that as it may, the large and quickly developing local area around the R language has certainly contributed to its worth as a programming language and as an information examination environment

In this article

Join the Conversation