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.
R software can be downloaded from website https://cran.r-project.org/
The website looks like this.
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
The following page is for Mac
mac
The following page is for 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
Since we have done installing R we can move forward with RStudio
RStudio web page URL is https://www.rstudio.com/products/rstudio/
Version available
based on OS choose the file to download
Installing
RStudio is divided into 4 Panes
Description of these components
Console is the place where R codes are executed
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 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 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
This notes has given an introduction to R and RStudio. Feel free to reach out for queries.