w3resource

R programming Exercises, Practice, Solution

R programming

R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories by John Chambers and colleagues. R can be considered as a different implementation of S. R provides a wide variety of statistical and graphical techniques, and is highly extensible.

The best way we learn anything is by practice and exercise questions. Here you have the opportunity to practice the R programming language concepts by solving the exercises starting from basic to more complex exercises. A sample solution is provided for each exercise. It is recommended to do these exercises by yourself first before checking the solution.

Hope, these exercises help you to improve your R programming coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!

List of R programming Exercises :

List of Exercises with Solutions :

Popularity of Programming Language
Worldwide, April 2020 compared to a year ago:

Rank Change Language Share Trend
1 Python 30.61 % +3.9 %
2 Java 18.45 % -1.9 %
3 Javascript 7.91 % -0.4 %
4 C# 7.27 % -0.0 %
5 PHP 6.07 % -1.1 %
6 C/C++ 5.76 % -0.2 %
7 R 3.8 % -0.2 %
8 Objective-C 2.4 % -0.4 %
9 Swift 2.23 % -0.2 %
10 up arrow TypeScript 1.85 % +0.2 %
11 down arrow Matlab 1.77 % -0.2 %
12 up arrow Kotlin 1.63 % +0.4 %
13 VBA 1.33 % +0.0 %
14 up arrow Go 1.26 % +0.2 %
15 down arrow Ruby 1.23 % -0.1 %
16 Scala 0.99 % -0.1 %
17 down arrow Visual Basic 0.92 % -0.2 %
18 up arrow Rust 0.67 % +0.2 %
19 Abap 0.51 % -0.1 %
20 down arrow Perl 0.5 % -0.1 %
21 up arrow Dart 0.46 % +0.2 %
22 down arrow Groovy 0.41 % -0.1 %
23   Ada 0.39 % +0.0 %
24 down arrow Lua 0.36 % -0.0 %
25 down arrow Cobol 0.34 % +0.0 %
26 down arrow Haskell 0.32 % +0.0 %
27 up arrow Julia 0.3 % +0.1 %
28 down arrow Delphi 0.26 % +0.0 %

Source : http://pypl.github.io/PYPL.html

TIOBE Index for April 2020

Apr 2020 Apr 2019 Change Programming Language Ratings Change
1 1 Java 16.73% +1.69%
2 2 C 16.72% +2.64%
3 4 up arrow Python 9.31% +1.15%
4 3 down arrow C++ 6.78% -2.06%
5 6 up arrow C# 4.74% +1.23%
6 5 down arrow Visual Basic 4.72% -1.07%
7 7 JavaScript 2.38% -0.12%
8 9 up arrow PHP 2.37% +0.13%
9 8 down arrow SQL 2.17% -0.10%
10 16 up arrow R 1.54% +0.35%
11 19 up arrow Swift 1.52% +0.54%
12 18 up arrow Go 1.36% +0.35%
13 13 Ruby 1.25% -0.02%
14 10 down arrow Assembly language 1.16% -0.55%
15 22 up arrow PL/SQL 1.05% +0.26%
16 14 down arrow Perl 0.97% -0.30%
17 11 down arrow Objective-C 0.94% -0.57%
18 12 down arrow MATLAB 0.93% -0.36%
19 17 down arrow Classic Visual Basic 0.83% -0.23%
20 27 up arrow Scratch 0.77% +0.28%

Source : https://www.tiobe.com/tiobe-index/

[ Want to contribute to R exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]