In the first part I covered a little background of R language, how to install R and RStudio and to install packages or load a library (). In this part I will be covering the following topics

  1. R Basics
  2. Functions
  3. Data Types

R Basics

  1. Variables — A variable is a name given to a memory location, which is used to store values in a program. Variables in R programming can be used to store numbers (real and complex), words, matrices, and even tables. Use the assignment symbol <-to define a variable.
# Assigning values to variables 
a <- 1
b <- 1…

In this post I will be covering the following topics that will help us to take first step in learning R language.

  1. Background
  2. Installation
  3. Installing Packages and loading a Library


R was developed by statisticians and data analysts as an interactive environment for data analysis.


We will need R and R studio on our local computer and I recommend RStudio, an integrated development environment (IDE), to edit and test our code.

Both R and RStudio can be freely downloaded and installed.

Installing R

You can download R from the Comprehensive R Archive Network (CRAN) or search for CRAN on your browser.

  1. Once…

Hanoor Sharma

Avid learner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store