You are on page 1of 22

Data Analytics

R programming for
data analytics

Week#9

Dr. Gulzar Ahmad


RStudio Installation

Introduction to R Programming

Outline
Overview of Variables

Basic Built-in R Function

2
Install anaconda and then Install RStudio

Power BI

3
Install RStudio

Power BI

https://www.rstudio.com/products/rstudio/download/#download

4
R Programming
R is an open-source programming
language that facilitates statistical
computing and graphical libraries.

5
Application of R Programming

6
Companies Using R

Some of the companies that are using R programming are as follows:


➢ Facebook
➢ Google
➢ LinkedIn
➢ IBM
➢ Twitter
➢ Uber
➢ Airbnb
➢ Ford Motor company
➢ Microsoft

7
Components of RStudio

1-Code Editor 3-Workspace and History

Power BI
2- R Console 4-Plots and Files
8
Explore RStudio

1-Code Editor

Select the desired lines


and press Ctrl + Enter.

To execute the Whole


Program/Script Press
➢ Ctrl + Shift + S
Power BI ➢ Ctrl + Shift + Enter

9
Variables in R

10
Data Types in R

11
Logical
Operators

12
Print
Formatting

13
Vectors

14
List

15
Matrix

16
Data Frame

17
Flow Control

18
If Statement in
R

19
Else Statement in R

20
While Loop in R

21
For Loop in R

22

You might also like