SlideShare a Scribd company logo
1 of 62
Download to read offline
UNIT IV – Data Analytics using R
1
Big Data Technologies (BDT)
B.Tech IV Year CST & IT - I Semester
Mr.Saravanakumar.V, M.E.,
Assistant Professor,
Dept. of Computer Science & Engineering,
Madanapalle Institute of Technology & Science.
: saravanakumar@mits.ac.in
Office : WB 306
31-12-2020
OUTLINE
4.1 Introduction to Data Science
4.2 Introduction to R
4.3 Installation of R or R Studio 32/64 bit Windows 10
4.4 R Console
4.5 Fundamentals of R
Variables
Operators
Data Types
Selection
Loops
4.6 Data Visualization in R
4.7 Programming Structures
4.8 Functions & Data Relationships
HTTPS://WWW.TUTORIALSPOINT.COM/R/INDEX.HTM 231-12-2020
4.1 Introduction to Data Science
Data science is a subset of AI, and it refers more to the overlapping
areas of statistics, scientific methods, and data analysis—all of which are
used to extract meaning and insights from data.
HTTPS://WWW.TUTORIALSPOINT.COM/R/INDEX.HTM 331-12-2020
4.1 Introduction to Data Science
2. Why data science ?
HTTPS://WWW.TUTORIALSPOINT.COM/R/INDEX.HTM 431-12-2020
4.2 History
S,S-plus & R
HTTP://WWW.R-PROJECT.ORG/ 531-12-2020
• S: an interactive environment for data analysis -Bell Laboratories ,1976
1988 - S2: RA Becker, JM Chambers, A Wilks
1992 - S3: JM Chambers, TJ Hastie
1998 - S4: JM Chambers
• Exclusively licensed by AT&T/Lucent to Insightful Corporation, Seattle WA. Product
name: “S-plus”.
Implementation languages C, Fortran. http://cm.bell-labs.com/cm/ms/departments/sia/S/history.html
• R: Ross Ihaka & Robert Gentleman, New Zealand,1990s.
• R is “GNU S” —data manipulation, calculation and graphical display.
• Core of R is an interpreted.
• Similar to C, C++ or FORTRAN
Introduction to R
HTTP://WWW.R-PROJECT.ORG/ 631-12-2020
Introduction to R
HTTP://WWW.R-PROJECT.ORG/ 731-12-2020
31-12-2020 8
4.4 R Console
31-12-2020 9
31-12-2020 10
4.5.1 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1131-12-2020
4.5.1 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1231-12-2020
4.5.2 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1331-12-2020
4.5.2 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1431-12-2020
4.5.2.a Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1531-12-2020
4.5.2.a R as a Calculator
HTTP://WWW.R-PROJECT.ORG/ 1631-12-2020
4.5.2.b Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1731-12-2020
4.5.2.c Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1831-12-2020
4.5.2.d Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 1931-12-2020
4.5.2.e Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2031-12-2020
https://www.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-
beginners-r-training-edureka
4.5 R – Quick Check Practice
HTTP://WWW.R-PROJECT.ORG/ 2131-12-2020
Source : http://statseducation.com/Introduction-to-R/modules/getting%20started/calculator/
4.5 R Help
HTTP://WWW.R-PROJECT.ORG/ 2231-12-2020
Source : https://youtu.be/AHPWEI_JDSo
4.5.3 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2331-12-2020
4.5.3 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2431-12-2020
4.5.3.a Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2531-12-2020
4.5.3.a Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2631-12-2020
https://www.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-
beginners-r-training-edureka
4.5.3.a Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2731-12-2020
https://www.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.3.b Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2831-12-2020
4.5.3.b Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 2931-12-2020
4.5 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 3031-12-2020
Activity #1
1. What is the use of # , <- , “”, &  in R?
2. Write any 3 major differences between R & Python?
3. List out R’s basic Data Structures.
Type of Activity : In-Class
Method : SCL
Time : 5 Minutes
4.5.3.c Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 3131-12-2020
4.5.3.d Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 3231-12-2020
4.5.3.e Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 3331-12-2020
4.5.3.f Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 3431-12-2020
4.5.4Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 3531-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.4.1Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 3631-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.4.1Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 3731-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.4.1.aFlow Control R
HTTP://WWW.R-PROJECT.ORG/ 3831-12-2020
https://www.tutorialspoint.com/r/r_if_statement.htm
4.5.1.4.1.b Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 3931-12-2020
https://www.tutorialspoint.com/r/r_if_else_statement.htm
4.5.1.4.1.cFlow Control R
HTTP://WWW.R-PROJECT.ORG/ 4031-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5 Fundamental Concept R
HTTP://WWW.R-PROJECT.ORG/ 4131-12-2020
Activity #2
1. Check whether the given input number is +ve or –ve or 0.
2. What will be the output of following program.
Type of Activity : Home
Method : SCL
Time : 15 Minutes
Output : ScreenShot
a <- 10
b <- 11
if(a == 10)
{
if(b == 10)
{
print("a:10 b:10")
}
else
{
print("a:10 b:11")
}
} else
{
if(a == 11)
{
print("a:11 b:10")
}
else
{
print("a:11 b:11")
}
}
4.5.2Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 4231-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.2Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 4331-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.2.aFlow Control R
HTTP://WWW.R-PROJECT.ORG/ 4431-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.2.bFlow Control R
HTTP://WWW.R-PROJECT.ORG/ 4531-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.2.c Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 4631-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.2.d Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 4731-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.5.2.e Flow Control R
HTTP://WWW.R-PROJECT.ORG/ 4831-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.6 Data Visualization in R
HTTP://WWW.R-PROJECT.ORG/ 4931-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.6.1 Data Visualization in R
HTTP://WWW.R-PROJECT.ORG/ 5031-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.6.2 Data Visualization in R
HTTP://WWW.R-PROJECT.ORG/ 5131-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.6.3 Data Visualization in R
HTTP://WWW.R-PROJECT.ORG/ 5231-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.6.4 Data Visualization in R
HTTP://WWW.R-PROJECT.ORG/ 5331-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.6.5 Data Visualization in R
HTTP://WWW.R-PROJECT.ORG/ 5431-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.6.6 Data Visualization in R
HTTP://WWW.R-PROJECT.ORG/ 5531-12-2020
https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training-
edureka
4.7 R Programming Structure
HTTP://WWW.R-PROJECT.ORG/ 5631-12-2020
4.7 R Programming Structure
HTTP://WWW.R-PROJECT.ORG/ 5731-12-2020
Packages are collections of R functions,
data, and compiled code in a well-defined
format. The directory where packages are
stored is called the Library.
4.8 R Functions & Data Relationship
HTTP://WWW.R-PROJECT.ORG/ 5831-12-2020
https://www.edureka.co/blog/introduction-to-functions-in-r/
Functions are used to logically break our code into simpler parts which
become easy to maintain and understand. A function is a set of statements
organized together to perform a specific task.
4.8 R Functions & Data Relationship
HTTP://WWW.R-PROJECT.ORG/ 5931-12-2020
https://www.edureka.co/blog/introduction-to-functions-in-r/
Activity #3
1. Write a R Script for factorial of any number
2. How to find Fibonacci of given number
3. Write a R Script for Sum of given N Natural Numbers
31-12-2020 60
References
HTTP://WWW.R-PROJECT.ORG/ 6131-12-2020
I. https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-
r-language-for-beginners-r-training-edureka
II. https://www.tutorialspoint.com/r/r_if_statement.htm
III. https://www.edureka.co/blog/introduction-to-functions-in-r/
IV. http://statseducation.com/Introduction-to-R/modules/getting%20started/calculator/
[ONLINE DEMO]
Thank You !!!
HTTP://WWW.R-PROJECT.ORG/ 6231-12-2020

More Related Content

Similar to Bdt unit iv data analyics using r

Chen Wang, Pazat, Di Napoli, Giordano: A Chemical Based Middleware for Workf...
Chen Wang, Pazat, Di Napoli, Giordano:  A Chemical Based Middleware for Workf...Chen Wang, Pazat, Di Napoli, Giordano:  A Chemical Based Middleware for Workf...
Chen Wang, Pazat, Di Napoli, Giordano: A Chemical Based Middleware for Workf...ServiceWave 2010
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with REdureka!
 
PHP QA Tools
PHP QA ToolsPHP QA Tools
PHP QA Toolsrjsmelo
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with REdureka!
 
Two Years with botnet Asprox - Michal Ambrož
Two Years with botnet Asprox - Michal AmbrožTwo Years with botnet Asprox - Michal Ambrož
Two Years with botnet Asprox - Michal AmbrožSecurity Session
 
Flink sql for continuous sql etl apps & Apache NiFi devops
Flink sql for continuous sql etl apps & Apache NiFi devopsFlink sql for continuous sql etl apps & Apache NiFi devops
Flink sql for continuous sql etl apps & Apache NiFi devopsTimothy Spann
 
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Nelson Calero
 
Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!Edureka!
 
EO notes Lecture 27 Project Management 2.ppt
EO notes Lecture 27 Project Management 2.pptEO notes Lecture 27 Project Management 2.ppt
EO notes Lecture 27 Project Management 2.pptyashchotaliyael21
 
VISWAPAVAN _2015_v1
VISWAPAVAN _2015_v1VISWAPAVAN _2015_v1
VISWAPAVAN _2015_v1viswa pavan
 
AI Deeplearning Programming
AI Deeplearning ProgrammingAI Deeplearning Programming
AI Deeplearning ProgrammingPaulSombat
 
.NET Study Group - ASP.NET Core with GCP
.NET Study Group - ASP.NET Core with GCP.NET Study Group - ASP.NET Core with GCP
.NET Study Group - ASP.NET Core with GCPChen-Tien Tsai
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC Syam Sasi
 
grading transcript format.docx
grading transcript format.docxgrading transcript format.docx
grading transcript format.docxssuser3fe8f7
 
Multiple awr reports_parser
Multiple awr reports_parserMultiple awr reports_parser
Multiple awr reports_parserJacques Kostic
 
Aprender sobre el futuro del ppm
Aprender sobre el futuro del ppmAprender sobre el futuro del ppm
Aprender sobre el futuro del ppmVictor Corniel
 
ENR_144008_INFY_ER_46734
ENR_144008_INFY_ER_46734ENR_144008_INFY_ER_46734
ENR_144008_INFY_ER_46734Manav Bhanot
 
Infosys_Traning_Certificate
Infosys_Traning_CertificateInfosys_Traning_Certificate
Infosys_Traning_CertificateNitika Agarwal
 
abapin21days.pdf
abapin21days.pdfabapin21days.pdf
abapin21days.pdfsampath k
 

Similar to Bdt unit iv data analyics using r (20)

Chen Wang, Pazat, Di Napoli, Giordano: A Chemical Based Middleware for Workf...
Chen Wang, Pazat, Di Napoli, Giordano:  A Chemical Based Middleware for Workf...Chen Wang, Pazat, Di Napoli, Giordano:  A Chemical Based Middleware for Workf...
Chen Wang, Pazat, Di Napoli, Giordano: A Chemical Based Middleware for Workf...
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
 
PHP QA Tools
PHP QA ToolsPHP QA Tools
PHP QA Tools
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
 
Two Years with botnet Asprox - Michal Ambrož
Two Years with botnet Asprox - Michal AmbrožTwo Years with botnet Asprox - Michal Ambrož
Two Years with botnet Asprox - Michal Ambrož
 
Flink sql for continuous sql etl apps & Apache NiFi devops
Flink sql for continuous sql etl apps & Apache NiFi devopsFlink sql for continuous sql etl apps & Apache NiFi devops
Flink sql for continuous sql etl apps & Apache NiFi devops
 
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
Automate Oracle database patches and upgrades using Fleet Provisioning and Pa...
 
Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!
 
EO notes Lecture 27 Project Management 2.ppt
EO notes Lecture 27 Project Management 2.pptEO notes Lecture 27 Project Management 2.ppt
EO notes Lecture 27 Project Management 2.ppt
 
SAP
SAPSAP
SAP
 
VISWAPAVAN _2015_v1
VISWAPAVAN _2015_v1VISWAPAVAN _2015_v1
VISWAPAVAN _2015_v1
 
AI Deeplearning Programming
AI Deeplearning ProgrammingAI Deeplearning Programming
AI Deeplearning Programming
 
.NET Study Group - ASP.NET Core with GCP
.NET Study Group - ASP.NET Core with GCP.NET Study Group - ASP.NET Core with GCP
.NET Study Group - ASP.NET Core with GCP
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC
 
grading transcript format.docx
grading transcript format.docxgrading transcript format.docx
grading transcript format.docx
 
Multiple awr reports_parser
Multiple awr reports_parserMultiple awr reports_parser
Multiple awr reports_parser
 
Aprender sobre el futuro del ppm
Aprender sobre el futuro del ppmAprender sobre el futuro del ppm
Aprender sobre el futuro del ppm
 
ENR_144008_INFY_ER_46734
ENR_144008_INFY_ER_46734ENR_144008_INFY_ER_46734
ENR_144008_INFY_ER_46734
 
Infosys_Traning_Certificate
Infosys_Traning_CertificateInfosys_Traning_Certificate
Infosys_Traning_Certificate
 
abapin21days.pdf
abapin21days.pdfabapin21days.pdf
abapin21days.pdf
 

More from Saravanakumar viswanathan (15)

18 cse412 elt-course orientation-saravanakumar
18 cse412  elt-course orientation-saravanakumar18 cse412  elt-course orientation-saravanakumar
18 cse412 elt-course orientation-saravanakumar
 
Cs2305 programming paradigms lecturer notes
Cs2305   programming paradigms lecturer notesCs2305   programming paradigms lecturer notes
Cs2305 programming paradigms lecturer notes
 
Bdt 3 exercise problems
Bdt 3 exercise problemsBdt 3 exercise problems
Bdt 3 exercise problems
 
How to give a good seminar project presentation
How to give a good seminar project presentationHow to give a good seminar project presentation
How to give a good seminar project presentation
 
18 mdcse117 m&amp;wt -course orientation
18 mdcse117 m&amp;wt -course orientation18 mdcse117 m&amp;wt -course orientation
18 mdcse117 m&amp;wt -course orientation
 
Python operator precedence and comments
Python   operator precedence and commentsPython   operator precedence and comments
Python operator precedence and comments
 
Python data types
Python   data typesPython   data types
Python data types
 
Top 5 python libraries for data science cheat sheat
Top 5 python libraries  for data science   cheat sheatTop 5 python libraries  for data science   cheat sheat
Top 5 python libraries for data science cheat sheat
 
Google colab installing ml libraries
Google colab   installing ml librariesGoogle colab   installing ml libraries
Google colab installing ml libraries
 
Google colab documenting and saving your code
Google colab   documenting and saving your codeGoogle colab   documenting and saving your code
Google colab documenting and saving your code
 
Google colab get started
Google colab   get startedGoogle colab   get started
Google colab get started
 
Google colab introduction
Google colab   introductionGoogle colab   introduction
Google colab introduction
 
Top 10 python ide
Top 10 python ideTop 10 python ide
Top 10 python ide
 
Python introduction why to study
Python introduction why to studyPython introduction why to study
Python introduction why to study
 
Parts of the computer ppt
Parts of the computer pptParts of the computer ppt
Parts of the computer ppt
 

Recently uploaded

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 

Recently uploaded (20)

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 

Bdt unit iv data analyics using r

  • 1. UNIT IV – Data Analytics using R 1 Big Data Technologies (BDT) B.Tech IV Year CST & IT - I Semester Mr.Saravanakumar.V, M.E., Assistant Professor, Dept. of Computer Science & Engineering, Madanapalle Institute of Technology & Science. : saravanakumar@mits.ac.in Office : WB 306 31-12-2020
  • 2. OUTLINE 4.1 Introduction to Data Science 4.2 Introduction to R 4.3 Installation of R or R Studio 32/64 bit Windows 10 4.4 R Console 4.5 Fundamentals of R Variables Operators Data Types Selection Loops 4.6 Data Visualization in R 4.7 Programming Structures 4.8 Functions & Data Relationships HTTPS://WWW.TUTORIALSPOINT.COM/R/INDEX.HTM 231-12-2020
  • 3. 4.1 Introduction to Data Science Data science is a subset of AI, and it refers more to the overlapping areas of statistics, scientific methods, and data analysis—all of which are used to extract meaning and insights from data. HTTPS://WWW.TUTORIALSPOINT.COM/R/INDEX.HTM 331-12-2020
  • 4. 4.1 Introduction to Data Science 2. Why data science ? HTTPS://WWW.TUTORIALSPOINT.COM/R/INDEX.HTM 431-12-2020
  • 5. 4.2 History S,S-plus & R HTTP://WWW.R-PROJECT.ORG/ 531-12-2020 • S: an interactive environment for data analysis -Bell Laboratories ,1976 1988 - S2: RA Becker, JM Chambers, A Wilks 1992 - S3: JM Chambers, TJ Hastie 1998 - S4: JM Chambers • Exclusively licensed by AT&T/Lucent to Insightful Corporation, Seattle WA. Product name: “S-plus”. Implementation languages C, Fortran. http://cm.bell-labs.com/cm/ms/departments/sia/S/history.html • R: Ross Ihaka & Robert Gentleman, New Zealand,1990s. • R is “GNU S” —data manipulation, calculation and graphical display. • Core of R is an interpreted. • Similar to C, C++ or FORTRAN
  • 11. 4.5.1 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1131-12-2020
  • 12. 4.5.1 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1231-12-2020
  • 13. 4.5.2 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1331-12-2020
  • 14. 4.5.2 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1431-12-2020
  • 15. 4.5.2.a Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1531-12-2020
  • 16. 4.5.2.a R as a Calculator HTTP://WWW.R-PROJECT.ORG/ 1631-12-2020
  • 17. 4.5.2.b Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1731-12-2020
  • 18. 4.5.2.c Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1831-12-2020
  • 19. 4.5.2.d Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 1931-12-2020
  • 20. 4.5.2.e Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2031-12-2020 https://www.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for- beginners-r-training-edureka
  • 21. 4.5 R – Quick Check Practice HTTP://WWW.R-PROJECT.ORG/ 2131-12-2020 Source : http://statseducation.com/Introduction-to-R/modules/getting%20started/calculator/
  • 22. 4.5 R Help HTTP://WWW.R-PROJECT.ORG/ 2231-12-2020 Source : https://youtu.be/AHPWEI_JDSo
  • 23. 4.5.3 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2331-12-2020
  • 24. 4.5.3 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2431-12-2020
  • 25. 4.5.3.a Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2531-12-2020
  • 26. 4.5.3.a Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2631-12-2020 https://www.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for- beginners-r-training-edureka
  • 27. 4.5.3.a Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2731-12-2020 https://www.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 28. 4.5.3.b Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2831-12-2020
  • 29. 4.5.3.b Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 2931-12-2020
  • 30. 4.5 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 3031-12-2020 Activity #1 1. What is the use of # , <- , “”, & in R? 2. Write any 3 major differences between R & Python? 3. List out R’s basic Data Structures. Type of Activity : In-Class Method : SCL Time : 5 Minutes
  • 31. 4.5.3.c Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 3131-12-2020
  • 32. 4.5.3.d Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 3231-12-2020
  • 33. 4.5.3.e Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 3331-12-2020
  • 34. 4.5.3.f Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 3431-12-2020
  • 35. 4.5.4Flow Control R HTTP://WWW.R-PROJECT.ORG/ 3531-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 36. 4.5.4.1Flow Control R HTTP://WWW.R-PROJECT.ORG/ 3631-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 37. 4.5.4.1Flow Control R HTTP://WWW.R-PROJECT.ORG/ 3731-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 38. 4.5.4.1.aFlow Control R HTTP://WWW.R-PROJECT.ORG/ 3831-12-2020 https://www.tutorialspoint.com/r/r_if_statement.htm
  • 39. 4.5.1.4.1.b Flow Control R HTTP://WWW.R-PROJECT.ORG/ 3931-12-2020 https://www.tutorialspoint.com/r/r_if_else_statement.htm
  • 40. 4.5.1.4.1.cFlow Control R HTTP://WWW.R-PROJECT.ORG/ 4031-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 41. 4.5 Fundamental Concept R HTTP://WWW.R-PROJECT.ORG/ 4131-12-2020 Activity #2 1. Check whether the given input number is +ve or –ve or 0. 2. What will be the output of following program. Type of Activity : Home Method : SCL Time : 15 Minutes Output : ScreenShot a <- 10 b <- 11 if(a == 10) { if(b == 10) { print("a:10 b:10") } else { print("a:10 b:11") } } else { if(a == 11) { print("a:11 b:10") } else { print("a:11 b:11") } }
  • 42. 4.5.2Flow Control R HTTP://WWW.R-PROJECT.ORG/ 4231-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 43. 4.5.2Flow Control R HTTP://WWW.R-PROJECT.ORG/ 4331-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 44. 4.5.2.aFlow Control R HTTP://WWW.R-PROJECT.ORG/ 4431-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 45. 4.5.2.bFlow Control R HTTP://WWW.R-PROJECT.ORG/ 4531-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 46. 4.5.2.c Flow Control R HTTP://WWW.R-PROJECT.ORG/ 4631-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 47. 4.5.2.d Flow Control R HTTP://WWW.R-PROJECT.ORG/ 4731-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 48. 4.5.2.e Flow Control R HTTP://WWW.R-PROJECT.ORG/ 4831-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 49. 4.6 Data Visualization in R HTTP://WWW.R-PROJECT.ORG/ 4931-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 50. 4.6.1 Data Visualization in R HTTP://WWW.R-PROJECT.ORG/ 5031-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 51. 4.6.2 Data Visualization in R HTTP://WWW.R-PROJECT.ORG/ 5131-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 52. 4.6.3 Data Visualization in R HTTP://WWW.R-PROJECT.ORG/ 5231-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 53. 4.6.4 Data Visualization in R HTTP://WWW.R-PROJECT.ORG/ 5331-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 54. 4.6.5 Data Visualization in R HTTP://WWW.R-PROJECT.ORG/ 5431-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 55. 4.6.6 Data Visualization in R HTTP://WWW.R-PROJECT.ORG/ 5531-12-2020 https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l-r-language-for-beginners-r-training- edureka
  • 56. 4.7 R Programming Structure HTTP://WWW.R-PROJECT.ORG/ 5631-12-2020
  • 57. 4.7 R Programming Structure HTTP://WWW.R-PROJECT.ORG/ 5731-12-2020 Packages are collections of R functions, data, and compiled code in a well-defined format. The directory where packages are stored is called the Library.
  • 58. 4.8 R Functions & Data Relationship HTTP://WWW.R-PROJECT.ORG/ 5831-12-2020 https://www.edureka.co/blog/introduction-to-functions-in-r/ Functions are used to logically break our code into simpler parts which become easy to maintain and understand. A function is a set of statements organized together to perform a specific task.
  • 59. 4.8 R Functions & Data Relationship HTTP://WWW.R-PROJECT.ORG/ 5931-12-2020 https://www.edureka.co/blog/introduction-to-functions-in-r/
  • 60. Activity #3 1. Write a R Script for factorial of any number 2. How to find Fibonacci of given number 3. Write a R Script for Sum of given N Natural Numbers 31-12-2020 60
  • 61. References HTTP://WWW.R-PROJECT.ORG/ 6131-12-2020 I. https://www2.slideshare.net/EdurekaIN/r-tutorial-for-beginners-r-programming-tutorial-l- r-language-for-beginners-r-training-edureka II. https://www.tutorialspoint.com/r/r_if_statement.htm III. https://www.edureka.co/blog/introduction-to-functions-in-r/ IV. http://statseducation.com/Introduction-to-R/modules/getting%20started/calculator/ [ONLINE DEMO]