SlideShare a Scribd company logo
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
What is Hadoop?
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
➢ Variables
➢ Data types
➢ Operators
➢ Conditional Statements
➢ Loops
➢ Strings
➢ Functions
Agenda
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
R Installation
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
RStudio Installation
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Variables
Data types
Operators
Conditional
Statements
Loops Functions
Strings
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Variable
Variables are nothing but reserved memory locations to store values. This means that
when you create a variable you reserve some space in memory.
X = 15
Y <- “Hello”
TRUE -> B
B = TRUE
Y = Hello
X = 15
Memory
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Operators
Conditional
Statements
Loops FunctionsVariables
Data types
Strings
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Data types
A data type, in programming, is a classification that specifies which type of value a variable
has and what type of mathematical, relational or logical operations can be applied to it
without causing an error.
X = 15
Y <- “Hello”
TRUE -> B
B = TRUE
Y = 3.142857
X = 15
Memory
Integer
Numeric
Boolean
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Data types
Data types
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Vector
 A Vector is a sequence of data elements of the same basic type
 There are 5 Atomic vectors, also termed as five classes of vectors.
True or False
15L, 30L, 1699L
5, 3.14285, 945678
4+3i, 8+7i
‘A’, “Hey”, ’True’
Integer
Numeric
Complex
Character
Logical
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Matrix
 Matrix are the R objects in which the elements are arranged in a
two-dimensional rectangular layout.
matrix(data, nrow, ncol, byrow, dimnames)
❖ data is the input vector which becomes the data elements of the matrix.
❖ nrow is the number of rows to be created.
❖ ncol is the number of columns to be created.
❖ byrow is a logical clue. If TRUE then the input vector elements are arranged by row.
❖ dimname is the names assigned to the rows and columns.
Syntax
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Array
 Arrays are the R data objects which can store data in more than
two dimensions.
array( data, dim, dimnames)
array( c(0:15), dim=c( 4,4,2,2) )
Syntax
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Lists
 Lists are the R objects which contain elements of different types
like − numbers, strings, vectors and another list inside it.
list(data)Syntax
vtr1 <- c(1:5)
vtr2 <- c("hi", "Hello", "How are you")
vtr3 <-c(TRUE,TRUE, FALSE, FALSE)
myList <- list(vtr1,vtr2, vtr3)
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Data Frame
 Data Frame is a table or a two-dimensional array-like structure in
which each column contains values of one variable and each row
contains one set of values from each column.
data.frame(data)Syntax
data.frame(mtcars)
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Conditional
Statements
Loops Functions
Strings
Variables
Data types
Operators
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Data Operators in R
Operators
Relational
Operators
Arithmetic
Operators
Logical
Operators
Assignment
Operations Operators are the constructs which can manipulate the value of operands.
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Arithmetic and Relational Operators
Arithmetic
a + b
a – b
a * b
a / b
a %% b
a^b
a%/%b
Subtraction
Division
Multiplication
Modulus
Exponent
a == b
a != b
a > b
a < b
a >= b
a <= b
Equal To
Greater Than
Not Equal To
Less Than
Greater Than Equal To
Less Than Equal To
Relational
Addition
Floor Division
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Assignment Operator
There are two types of Assignment operators: Left and Right
Left
Right
Equals
Assign
Equals
Assign
x=5
x<- 15
20=x
25 -> x
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Logical Operator
There are three types of logical operators: AND, NOT, OR
a & b
It combines each element of vectors and gives a output
TRUE if both the elements are TRUE.
a | b It combines each element of the vectors and gives a
output TRUE if one the elements is TRUE.
!a Takes each element of the vector and gives the opposite
logical value.
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Operators
Conditional
Statements
Loops Functions
Strings
Variables
Data types
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Conditional Statements
If Statement
If code
End
Start
If
Condition
FALSETRUE
Syntax:
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Conditional Statements
Else If Statement
If code
End
Start
If
Condition
FALSE
TRUE
FALSE
Else If
Condition
TRUE
Else If code
Syntax:
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Conditional Statements
Else Statement
Syntax:
If code
End
Start
If
Condition
FALSE
TRUE
FALSE
Else If
Condition
TRUE
Else If code
Else code
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Conditional Statements
Switch case Statement
Syntax:
Start
switch
Condition
Case value1 Statement 1
Case value2 Statement 2
Case value3 Statement 3
default Statement
End
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Conditional
Statements
Operators Functions
Strings
Variables
Data types
Loops
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Loops in R
A loop statement allows us to execute a statement or group of statements
multiple times.
Loops
Loops
forwhilerepeat
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Repeat Loop
repeat Repeats a statement or group of statements while a given condition is TRUE. It
tests the condition after executing the loop body.
Syntax:
CHECK
CONDITION
EXECUTE BLOCK
START
EXIT LOOPFALSE
TRUE
repeat
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
While Loop
while Loop Repeats a statement or group of statements while a given condition is TRUE. It
tests the condition before executing the loop body.
Syntax:
CHECK
CONDITION
EXECUTE BLOCK
START
repeat
EXIT LOOP
FALSE
TRUE
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
For Loop
for Loop Repeats a statement or group of for a fixed number of times. It tests the
condition before executing the loop body.
Syntax:
Check
condition
Initialization
START
Iteration
Execute Statements
Exit loop
FALSE
TRUE
repeat
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Loops
Strings
Conditional
Statements
Operators FunctionsVariables
Data types
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
 Any value written within a pair of single quote or double quotes in R is treated as a string.
String in R
Syntax:
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
String in R
Sequence Operations:
➢ Concatenation:
str1<- ‘Hi’
str2<- “How are you?”
paste(str1,str2) "Hi How are you? "
➢ Character Count:
nchar(str)str<-“Edureka” 7
➢ Case Change
toupper(str)
tolower(str)
str<-“Edureka”
EDUREKA
edureka
➢ Substring
substring(str, 3, 6)str<-“Edureka” “urek”
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Functions
Loops
Conditional
Statements
OperatorsVariables
Data types Strings
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Functions
A function is a block of organized, reusable code that is used to perform a
single, related action.
Functions
Predefined
Functions
User Defined
Functions
Function Add
Call (3,5)
Call (6,9)
Call (1,5)
Call 1
Call 2
Call 3
Return 8
Return 15
Return 6
Functions In R
`
https://www.edureka.co/r-for-analyticsEDUREKA DATA ANALYTICS WITH R CERTIFICATION TRAINING
Session In A Minute
Install R & RStudio Data Types
Conditional Statements Loops
Data Operators
Functions
R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners | Edureka

More Related Content

What's hot (20)

PDF
Chapter 5 Database Transaction Management
Eddyzulham Mahluzydde
 
PDF
Introduction to dataset
datamantra
 
PPT
SQL Queries
Nilt1234
 
PPTX
Data Modeling PPT
Trinath
 
PPTX
Database Design
learnt
 
ODP
ER Model in DBMS
Kabindra Koirala
 
PPTX
Relational Database Design
Archit Saxena
 
PPTX
Apriori algorithm
Mainul Hassan
 
PDF
Data Visualization With R
Rsquared Academy
 
PPTX
Step By Step Guide to Learn R
Venkata Reddy Konasani
 
PPT
Pattern matching
shravs_188
 
PPTX
Chapter-7 Relational Calculus
Kunal Anand
 
PPT
PL/SQL Introduction and Concepts
Bharat Kalia
 
PDF
Data Mining & Data Warehousing Lecture Notes
FellowBuddy.com
 
PDF
View & index in SQL
Swapnali Pawar
 
PPT
MySQL Views
Reggie Niccolo Santos
 
PDF
Linear Regression With R
Edureka!
 
PPT
Normalization PRESENTATION
bit allahabad
 
PPTX
Exploratory data analysis in R - Data Science Club
Martin Bago
 
PDF
Big Data Analytics with R
Great Wide Open
 
Chapter 5 Database Transaction Management
Eddyzulham Mahluzydde
 
Introduction to dataset
datamantra
 
SQL Queries
Nilt1234
 
Data Modeling PPT
Trinath
 
Database Design
learnt
 
ER Model in DBMS
Kabindra Koirala
 
Relational Database Design
Archit Saxena
 
Apriori algorithm
Mainul Hassan
 
Data Visualization With R
Rsquared Academy
 
Step By Step Guide to Learn R
Venkata Reddy Konasani
 
Pattern matching
shravs_188
 
Chapter-7 Relational Calculus
Kunal Anand
 
PL/SQL Introduction and Concepts
Bharat Kalia
 
Data Mining & Data Warehousing Lecture Notes
FellowBuddy.com
 
View & index in SQL
Swapnali Pawar
 
Linear Regression With R
Edureka!
 
Normalization PRESENTATION
bit allahabad
 
Exploratory data analysis in R - Data Science Club
Martin Bago
 
Big Data Analytics with R
Great Wide Open
 

Similar to R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners | Edureka (20)

PDF
R Programming - part 1.pdf
RohanBorgalli
 
PPTX
Get started with R lang
senthil0809
 
PPTX
1_Introduction.pptx
ranapoonam1
 
PPTX
Introduction To Programming In R for data analyst
ssuser26ff68
 
PDF
Basics of R programming for analytics [Autosaved] (1).pdf
suanshu15
 
PPTX
Power point presentation on loading and handling data in R
sharmahemant3612
 
PPTX
R ppt for skejsjsjsjjssjskskskskskksk.pptx
vivek989689
 
PPTX
data analysis using R programming language
yusufishaq7
 
PPTX
R basics for MBA Students[1].pptx
rajalakshmi5921
 
PPTX
Unit I - 1R introduction to R program.pptx
SreeLaya9
 
PPT
Loops and functions in r
manikanta361
 
PDF
R handbook - from Installation to Text Analytics
ATI_2205
 
PDF
2 data types and operators in r
Dr Nisha Arora
 
PDF
Introduction to R programming
Alberto Labarga
 
PPTX
Unit-5 BDS.pptx on basics of data science
SyedFahad39584
 
PDF
7. basics
ExternalEvents
 
PDF
INTRODUCTION AND HISTORY OF R PROGRAMMING.pdf
ranapoonam1
 
PDF
R basics
FAO
 
PPT
R Programming Intro
062MayankSinghal
 
R Programming - part 1.pdf
RohanBorgalli
 
Get started with R lang
senthil0809
 
1_Introduction.pptx
ranapoonam1
 
Introduction To Programming In R for data analyst
ssuser26ff68
 
Basics of R programming for analytics [Autosaved] (1).pdf
suanshu15
 
Power point presentation on loading and handling data in R
sharmahemant3612
 
R ppt for skejsjsjsjjssjskskskskskksk.pptx
vivek989689
 
data analysis using R programming language
yusufishaq7
 
R basics for MBA Students[1].pptx
rajalakshmi5921
 
Unit I - 1R introduction to R program.pptx
SreeLaya9
 
Loops and functions in r
manikanta361
 
R handbook - from Installation to Text Analytics
ATI_2205
 
2 data types and operators in r
Dr Nisha Arora
 
Introduction to R programming
Alberto Labarga
 
Unit-5 BDS.pptx on basics of data science
SyedFahad39584
 
7. basics
ExternalEvents
 
INTRODUCTION AND HISTORY OF R PROGRAMMING.pdf
ranapoonam1
 
R basics
FAO
 
R Programming Intro
062MayankSinghal
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
July Patch Tuesday
Ivanti
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 

R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners | Edureka