What is R programming?
R programming is different from other programming languages like Python, C# and C, etc. R programming is the best programming language to analyze data. R programming provides many features to understand the data better in a more understandable form but these features will be discussed later. Now, let's focus on the background of R programming language
R programming is open source, which means it is free with GNU General Public License and the pre-compiled versions are available for cross platforms like Windows, Linux, and MAC OS.
According to some books, R programming language is named based on the author's first letter (Robert Gentleman and Ross Ihaka).
History of R programming language
R programming language was developed at the University of Auckland, New Zealand by Ross Ihaka and Robert Gentleman for statistical analysis, graphics representation, and reporting of data; and currently is developed by the R development core team.
R programming language's initial version was released in 1994 and a stable beta version in 2000.
Prerequisites
You must have a basic understanding of computer programming languages, and if you are an expert in any programming language, it is advantageous for you.
Basic syntax of R programming
R programming also has a simple syntax like Python programmin,g and it is easy to understand. For example,
- # Print Hello World.
- print("Hello World")
- # Add two numbers.
- print(23.9 + 11.6)
Overview R programming can also have some basic features like other programming languages and they are listed below:
- Decision making
- If statement
- Else if statement
- Switch statement
- Looping
- Repeat loop
- While loop
- For loop
- Array and list
- Functions
R programming data interface
R programming supports many type data interfaces that are listed below:
- R-CSV file
- R-Excel file
- R-Binary file
- R-XML file
- R-JSON file
- R-Web data
- R-database
R charts and Graph
R programming supports all the charts and graphs listed below:
- R - Pie Charts
- R - Bar Charts
- R - Boxplots
- R - Histograms
- R - Line Graphs
- R - Scatterplots
Operations performed using R programming
In R programming, we can perform all the operations, using built-in functions, given below:
- R - Mean, Median & Mode
- R - Linear Regression
- R - Multiple Regression
- R - Logistic Regression
- R - Normal Distribution
- R - Binomial Distribution
- R - Poisson Regression
- R - Analysis of Covariance
- R - Time Series Analysis
- R - Nonlinear Least Square
- R - Decision Tree
- R - Random Forest
- R - Survival Analysis
- R - Chi Square Tests
I hope you liked this article.