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, Jan 2022 compared to a year ago:

`
Rank Change Language Share Trend
1 Python 28.74 % -1.8 %
2 Java 18.01 % +1.2 %
3 Javascript 9.07 % +0.6 %
4 up arrow C/C++ 7.4 % +1.1%
5 down arrow C# 7.27 % +0.7 %
6 PHP 6.06 % +0.0 %
7 R 4.19 % +0.3 %
8 Objective-C 2.27 % -1.4 %
9 Swift 1.91 % -0.2 %
10 TypeScript 1.74 % -0.0 %
11 Matlab1.74% +0.0 %
12 Kotlin 1.71 % +0.0 %
13 Go 1.19 % -0.1 %
14 VBA 1.14 % -0.0 %
15 Ruby 1.07 % -0.0%
16 Rust 0.98 % -0.0 %
17 up arrow Ada 0.75 % +0.1 %
18 up arrow Dart 0.72 % +0.2 %
19 up arrow Abap 0.66 % +0.2 %
20 down arrow Visual Basic 0.64 % -0.0 %
21 down arrow Scala 0.48 % -0.2%
22 up arrow Groovy 0.48 % +0.1 %
23 down arrow Lua 0.42 % -0.2 %
24 down arrow Perl 0.38 % -0.1 %
25 up arrow Haskell 0.34 % +0.1 %
26 down arrow Julia 0.34 % -0.0 %
27 down arrow Cobol 0.3 % -0.0 %

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

TIOBE Index for January 2022

Jan 2022 Jan 2021 Change Programming Language Ratings Change
1 3 up arrow Python 13.58% +1.86%
2 1 down arrow C 12.44% -4.94%
3 2 down arrow Java 10.66% -1.30%
4 4 C++ 8.29% +0.73%
5 5 C# 5.68% +1.73%
6 6 Visual Basic 4.74% +0.90%
7 7 JavaScript 2.09% -0.11%
8 11 up arrow Assembly language 1.85% +0.21%
9 12 up arrow SQL 1.80% +0.19%
10 13 up arrow Swift 1.41% -0.02%
11 8 down arrow PHP 1.40% -0.60%
12 9 down arrow R 1.25% -0.65%
13 14 up arrow Go 1.04% -0.37%
14 19 up arrow Delphi/Object Pascal 0.99% +0.20%
15 20 up arrow Classic Visual Basic 0.98% +0.19%
16 16 MATLAB 0.96% -0.19%
17 10 down arrow Groovy 0.94% -0.90%
18 15 down arrow Ruby 0.88% -0.43%
19 30 up arrow Fortran 0.77% +0.31%
20 17 down arrow Perl 0.71% -0.31%

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.]