Getting Started with R

RSN_Thinklabz_Chennai

Website https://www.thinklabz.ai/

Mail Thinklabz.chennai@gmail.com

2021-06-11


Preamble

R is a powerful statistical programming language that is built to work well with large and diverse datasets.
This notes aims at giving readers a routemap to get started with programming language R and its IDE (Integrated Development Environment) RStudio. We are going to look at how to download, install and understand the basic components of R and RStudio.

Downloading And installing R

R software can be downloaded from website https://cran.r-project.org/

The website looks like this.

Cran website

Cran website

From this we can choose the option whether we wish to download for Windows or Mac or Linux OS

The following page is for Windows

Windows

Windows

The following page is for Mac

mac

mac

The following page is for Linux

LINUX

LINUX

Once downloaded R can be installed by clicking the file which is downloaded and by following the instructions. After installing the Software we can see the welcome page as shown below

WELCOME

WELCOME

Since we have done installing R we can move forward with RStudio

Downloading and installing RStudio

RStudio web page URL is https://www.rstudio.com/products/rstudio/

Version available

based on OS choose the file to download

Installing

Components of RStudio

RStudio is divided into 4 Panes

Description of these components

Console Pane (Bottom Left)

Console is the place where R codes are executed

Environment and History (Top Right)

The values and data we load in R is stored in Environment

We can see previously executed commands using history section

Importing dataset

Importing an Excel file

Help and Packages (Bottom Right)

Help Section is used to know more about function, dataset, package

Package section aids us in accessing packages in R (To know more about packages please refer http://rpubs.com/Thinklabz/Intro_to_R_packages )

To install a package using RStudio we can search the package's name here

Loading package

Source (Top Left)

Source is the place where we have various files which we can work with R. We can edit source files and run it either line by line or full document also.
Using R Script for writing code

Final Note

This notes has given an introduction to R and RStudio. Feel free to reach out for queries.