\(~~~~~~\)Why you need to learn R\(~~~~~~\)

Somsak Chanaim

International College of Digital Innovation, Chiang Mai University

October 30, 2024

Tools

\(~\)

\[~\] posit: Cheatsheet

Why R is good?

R is the most popular language in the world of Data Analytics/Science.

  • It helps analyze data that is both structured and unstructured.

  • It was made R the standard language for performing statistical operations.

  • R allows various features that differentiate it from other Data Analytics/Science languages.

  • R is a very good program for data visualization.

Why R is essential for Data Science?

R plays a vital role in Data Science, you will be benefited with following operations in R.

  • We can run a code without any compiler: R is an interpreted language, so that we can run code without any compiler.

  • Many calculations are done with vectors: R is a vector language, so anyone can add functions to a single Vector without putting it in a loop.

  • Statistical language: R is used in economics, business, finance, and statistics etc..

Why is R Good for Business?

R will also be a great help in business.

  • The primary reason is that R is open-source. Therefore it can be modified and redistributed as per the user’s need.

  • R has a tool to create a dynamic report (rmarkdown and quarto).

Open-source

R is an open-source language, you can modify various functions in R and make your packages. Since R is issued under the General Public Licence (GNU), there are no restrictions on its usage.

Popularity

R is one of the most popular programming languages in the industry. With the emergence of data science, the need for R in the industries became evident.

Robust Visualization Library

R comprises libraries like the ggplot2, plotly, and highcharter that offer graphical aesthetic plots to its users.

Quantmod

The quantmod package in R is a widely used package for quantitative financial modeling and trading analysis.

Web-Apps

R provides the package with the ability to build aesthetic web applications. For example, using the R Shiny package, we can develop interactive dashboards straight from the console of R IDE(recommend RStudio).

Advantages of R Programming

There are several benefits and some limitations of the R programming language.

Pros of R Language

  • R is the most comprehensive statistical analysis package, as new technology and ideas often appear first in R.

  • R is open-source. We can run R anywhere at any time and even sell it under the conditions of the license.

  • It is cross-platform and runs on many operating systems. It is best for GNU/Linux, Windows, and MAC OS.

  • Everyone is welcome to provide bug fixes, code enhancements, and new packages.

Disadvantages of R Programming

Cons of R Language

  • The quality of some packages in R is less than perfect.

  • There is no customer support for R language if something does not work.

  • R commands are hardly concerned with memory management.

The Learning Curve of R Programming

https://www.linkedin.com/pulse/things-try-when-your-r-code-fails-angela-cao

Install R

Install RStudio

\(~\)Download RStudio

Install quarto

Download quarto

Please select current release

View slides in full screen

Test the R program on these slides

Test the commands

# commands 1
str(cars)

# commands 2
plot(cars)

# commands 3
cor(cars)
03:00