SlideShare une entreprise Scribd logo
1  sur  22
Programming Language
SEMINAR BY:
RAHUL SINGH
CONTENTS
 History
 Introduction
 Why R?
 R Package
 R GUI
 Features
 Getting Started
 Why Use R?
 Comparison with other programming
languages
 Merits
 Demerits
 Conclusion
History
 R is a programming language which was an
implementation over S language.
 R was first designed by Ross Ihaka and Robert
Gentleman at the University of Auckland in 1993.
 It was stable released on October 31st 2014 the 4
months ago ,by R Development Core Team Under
GNU General Public License.
Introduction
 R is functional programming language
 R is an interpreted language
 R is case sensitive
 R is object oriented-language
 The R language is widely used among
statisticians and data miners for
developing statistical software and
data analysis.
Why R ?
 The R statistical programming language is
a free open source package.
 Many statistical functions are already built
in.
 The most extensive modeling resources in
scientific research.
 The fine publishing quality graphs.
 R is freely available under GNU General
Public License.
R Package
 A Package is a collection of R functions with
comprehensive documents.
 A Package includes: R functions, Data Example,
Help Files, Namespace and Description.
 The default installation is kept as minimum.
 The function of R could be extent by loading R
packages.
R GUI
Features
 Open Source:
The source code of R program and the extensions
could be examined line by line.
 Integrating with other Programming
Language:
R is an interpreting language, can be rather slow,
but could integrate with high efficient languages
such as C, C++ or Fortran.
 OS Independence:
UNIX, Linux, Windows, MacOS, FreeBSD...
 Command line Driven:
You have to write Commands...
Getting Started
Basic Objects
 Vector
 List
 Factor
 Array
 Matrix
 Data Frame
Basic assignment and
operations.
 Arithmetic Operations:
◦ +, -, *, /, ^ are the standard arithmetic
operators.
 Matrix Arithmetic.
◦ * is element wise multiplication
◦ %*% is matrix multiplication
 Assignment
◦ To assign a value to a variable use “<-”
Basic Functions Used In R
Language
Loops
When the same or similar tasks need to be
performed multiple times; for all elements of a
list; for all columns of an array; etc.
for(i in 1:10) {
print(i*i)
}
i<-1
while(i<=10) {
print(i*i)
i<-i+sqrt(i)
}
Array
 Array
◦ An extension of a vector to more than two
dimensions
◦ a <-
array(c(1,2,3,4,5,6,7,8,9,10,11,12),dim=c(
3,4))
Programming features
• Flow control statements
• while, repeat, break, continue, if, return
• Exceptions, using try catch blocks
• Functions
o Default parameters
o Positional or named arguments
o Generic
o Anonymous
Example
• `%my%` <- function(a,b)
{
return 2*a + 2 *b
}
fibonacci <- function(n) {
if(n<=2) return 1
fib <- numeric(n)
fib[1:2] <- 1
for(i in 3:n) {
fib[i] <- fib[i-1] + fib[i-2]
}
return (fib[n])
Why use R?
 Matrix calculation
 Data visualization (interactive too)
 Statistic analysis (regression, time
series, geo-spatial)
 Data mining, classification, clustering
 Analysis of genomic data
 Machine learning
Comparison with other languages
R Programming Python Java
•It was stably released
in 2014.
•It was stably released
in 1996.
•It was stably released
in 1995.
•It has more functions
and packages.
•It has less functions
and packages.
•It has large number of
inbuilt functions and
packages.
•It is an interpreter
base language
•It is an interpreter
base language
•It is interpreter and
compiled based
language.
•It is statistical design
and graphics
programming
language.
•It is general purpose
language.
•It is general purpose
programming
language designed for
web applications .
•It is difficult to learn
and understand.
•It is easy to
understand.
•It is easy to learn and
understand.
•R is mostly use for
data analysis.
•Generic programming
tasks such as design
of software's or
•Java is mostly used in
design of windows
applications and web
Merits
 R is a programming language and
environment developed for
statistical analysis by practicing statisticians
and researchers.
 The graphical capabilities of R are
outstanding, providing a fully programmable
graphics language.
 R is free and open source software,
allowing anyone to use and, importantly, to
modify it.
 R has over 4800 packages available from
multiple repositories specializing in topics
like econometrics, data mining, spatial
analysis, and bio-informatics.
 R is cross-platform. R runs on many
operating systems and different hardware.
Demerits
 R is slow : Is an interpreting language
and is not very fast. Could be 1/40 of C.
 Limitation of Memory: All the objects are
in memory.
 R is hard to learn: One has to memorize
the commands/functions, and understand
the logics of programming. The fluency in R
requires great time and energy.
Conclusion
 R has become a high quality open-
source software environment for
statistical computing and graphics
 R allows the usage of many control
flows, loops and user-defined
functions, multiple input and output
data formats
 R continues to help shape the future
of statistical analysis, and data
science.
Thanks..

Contenu connexe

Tendances

Computer components
Computer componentsComputer components
Computer componentsAdnan Malak
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating SystemKunalKewat1
 
Computer Awareness Training
Computer Awareness TrainingComputer Awareness Training
Computer Awareness Trainingbsnsfadmin
 
Report on car racing game for android
Report on car racing game for androidReport on car racing game for android
Report on car racing game for androidravijot singh
 
Is Linux ready for safety related applications?
Is Linux ready for safety related applications?Is Linux ready for safety related applications?
Is Linux ready for safety related applications?Alexander Much
 
Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Pritam Samanta
 
Basics of Computer Coding: Understanding Coding Languages
Basics of Computer Coding: Understanding Coding LanguagesBasics of Computer Coding: Understanding Coding Languages
Basics of Computer Coding: Understanding Coding LanguagesBrian Pichman
 
COMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERS
COMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERSCOMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERS
COMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERSMakaha Rutendo
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemHungWei Chiu
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux pptOmi Vichare
 
App Inventor : Getting Started Guide
App Inventor : Getting Started GuideApp Inventor : Getting Started Guide
App Inventor : Getting Started GuideVasilis Drimtzias
 
Peter Norton - Introduction to computers Part 1
Peter Norton - Introduction to computers Part 1Peter Norton - Introduction to computers Part 1
Peter Norton - Introduction to computers Part 1Konstantin Pankratov
 

Tendances (17)

Computer components
Computer componentsComputer components
Computer components
 
Linux Operating System
Linux Operating SystemLinux Operating System
Linux Operating System
 
Computer Awareness Training
Computer Awareness TrainingComputer Awareness Training
Computer Awareness Training
 
Report on car racing game for android
Report on car racing game for androidReport on car racing game for android
Report on car racing game for android
 
dot net unit-1.pdf
dot net unit-1.pdfdot net unit-1.pdf
dot net unit-1.pdf
 
Is Linux ready for safety related applications?
Is Linux ready for safety related applications?Is Linux ready for safety related applications?
Is Linux ready for safety related applications?
 
Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game
 
Basics of Computer Coding: Understanding Coding Languages
Basics of Computer Coding: Understanding Coding LanguagesBasics of Computer Coding: Understanding Coding Languages
Basics of Computer Coding: Understanding Coding Languages
 
COMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERS
COMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERSCOMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERS
COMPUTER OPERATIONS & PACKAGES NOTES & INTRODUCTION TO COMPUTERS
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
 
I C D L - دورة
I C D L - دورة I C D L - دورة
I C D L - دورة
 
Introduction to linux ppt
Introduction to linux pptIntroduction to linux ppt
Introduction to linux ppt
 
App Inventor : Getting Started Guide
App Inventor : Getting Started GuideApp Inventor : Getting Started Guide
App Inventor : Getting Started Guide
 
Presentation on Computer Software.ppt
Presentation on Computer Software.pptPresentation on Computer Software.ppt
Presentation on Computer Software.ppt
 
Word processing
Word processing  Word processing
Word processing
 
02. Struktur Dasar Php
02. Struktur Dasar Php02. Struktur Dasar Php
02. Struktur Dasar Php
 
Peter Norton - Introduction to computers Part 1
Peter Norton - Introduction to computers Part 1Peter Norton - Introduction to computers Part 1
Peter Norton - Introduction to computers Part 1
 

En vedette

R programming Basic & Advanced
R programming Basic & AdvancedR programming Basic & Advanced
R programming Basic & AdvancedSohom Ghosh
 
An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)Dataspora
 
Intro to R and Data Mining 2012 09 27
Intro to R and Data Mining 2012 09 27Intro to R and Data Mining 2012 09 27
Intro to R and Data Mining 2012 09 27Raj Kasarabada
 
Webinar : Introduction to R Programming and Machine Learning
Webinar : Introduction to R Programming and Machine LearningWebinar : Introduction to R Programming and Machine Learning
Webinar : Introduction to R Programming and Machine LearningEdureka!
 
Running GLM in R
Running GLM in RRunning GLM in R
Running GLM in RSri Ambati
 
R Programming Features
R Programming FeaturesR Programming Features
R Programming FeaturesIntellipaat
 
R Programming Overview
R Programming Overview R Programming Overview
R Programming Overview dlamb3244
 
Sparq lreference 1.8-us
Sparq lreference 1.8-usSparq lreference 1.8-us
Sparq lreference 1.8-usAjay Ohri
 
The History and Use of R
The History and Use of RThe History and Use of R
The History and Use of RAnalyticsWeek
 
Data Visualization in R
Data Visualization in RData Visualization in R
Data Visualization in RSophia Banton
 
How to get started with R programming
How to get started with R programmingHow to get started with R programming
How to get started with R programmingRamon Salazar
 
R programming language
R programming languageR programming language
R programming languageKeerti Verma
 
Performance data visualization with r and tableau
Performance data visualization with r and tableauPerformance data visualization with r and tableau
Performance data visualization with r and tableauEnkitec
 
A Few Interesting Things in Apple's Swift Programming Language
A Few Interesting Things in Apple's Swift Programming LanguageA Few Interesting Things in Apple's Swift Programming Language
A Few Interesting Things in Apple's Swift Programming LanguageSmartLogic
 
Why R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics PlatformWhy R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics PlatformSyracuse University
 
Introduction to Swift programming language.
Introduction to Swift programming language.Introduction to Swift programming language.
Introduction to Swift programming language.Icalia Labs
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programmingizahn
 

En vedette (20)

Class ppt intro to r
Class ppt intro to rClass ppt intro to r
Class ppt intro to r
 
R programming Basic & Advanced
R programming Basic & AdvancedR programming Basic & Advanced
R programming Basic & Advanced
 
An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)
 
Intro to R and Data Mining 2012 09 27
Intro to R and Data Mining 2012 09 27Intro to R and Data Mining 2012 09 27
Intro to R and Data Mining 2012 09 27
 
Webinar : Introduction to R Programming and Machine Learning
Webinar : Introduction to R Programming and Machine LearningWebinar : Introduction to R Programming and Machine Learning
Webinar : Introduction to R Programming and Machine Learning
 
R Programming
R ProgrammingR Programming
R Programming
 
Running GLM in R
Running GLM in RRunning GLM in R
Running GLM in R
 
R Programming Features
R Programming FeaturesR Programming Features
R Programming Features
 
R Programming Overview
R Programming Overview R Programming Overview
R Programming Overview
 
Sparq lreference 1.8-us
Sparq lreference 1.8-usSparq lreference 1.8-us
Sparq lreference 1.8-us
 
The History and Use of R
The History and Use of RThe History and Use of R
The History and Use of R
 
Data Visualization in R
Data Visualization in RData Visualization in R
Data Visualization in R
 
How to get started with R programming
How to get started with R programmingHow to get started with R programming
How to get started with R programming
 
R programming language
R programming languageR programming language
R programming language
 
Performance data visualization with r and tableau
Performance data visualization with r and tableauPerformance data visualization with r and tableau
Performance data visualization with r and tableau
 
A Few Interesting Things in Apple's Swift Programming Language
A Few Interesting Things in Apple's Swift Programming LanguageA Few Interesting Things in Apple's Swift Programming Language
A Few Interesting Things in Apple's Swift Programming Language
 
Why R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics PlatformWhy R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics Platform
 
R programming
R programmingR programming
R programming
 
Introduction to Swift programming language.
Introduction to Swift programming language.Introduction to Swift programming language.
Introduction to Swift programming language.
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programming
 

Similaire à R programming Language , Rahul Singh

Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programminghemasri56
 
1_Introduction.pptx
1_Introduction.pptx1_Introduction.pptx
1_Introduction.pptxranapoonam1
 
R basics for MBA Students[1].pptx
R basics for MBA Students[1].pptxR basics for MBA Students[1].pptx
R basics for MBA Students[1].pptxrajalakshmi5921
 
R Programming Language
R Programming LanguageR Programming Language
R Programming LanguageNareshKarela1
 
R as supporting tool for analytics and simulation
R as supporting tool for analytics and simulationR as supporting tool for analytics and simulation
R as supporting tool for analytics and simulationAlvaro Gil
 
Introduction to R and R Studio
Introduction to R and R StudioIntroduction to R and R Studio
Introduction to R and R StudioRupak Roy
 
2 it unit-1 start learning r
2 it   unit-1 start learning r2 it   unit-1 start learning r
2 it unit-1 start learning rNetaji Gandi
 
R programming advantages and disadvantages
R programming advantages and disadvantagesR programming advantages and disadvantages
R programming advantages and disadvantagesPrwaTech
 
R programming presentation
R programming presentationR programming presentation
R programming presentationAkshat Sharma
 
FULL R PROGRAMMING METERIAL_2.pdf
FULL R PROGRAMMING METERIAL_2.pdfFULL R PROGRAMMING METERIAL_2.pdf
FULL R PROGRAMMING METERIAL_2.pdfattalurilalitha
 
Software_engineering.pptx
Software_engineering.pptxSoftware_engineering.pptx
Software_engineering.pptxjohn6938
 
DATA MINING USING R (1).pptx
DATA MINING USING R (1).pptxDATA MINING USING R (1).pptx
DATA MINING USING R (1).pptxmyworld93
 

Similaire à R programming Language , Rahul Singh (20)

Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programming
 
1_Introduction.pptx
1_Introduction.pptx1_Introduction.pptx
1_Introduction.pptx
 
R programming
R programmingR programming
R programming
 
Data Mining with R programming
Data Mining with R programmingData Mining with R programming
Data Mining with R programming
 
R basics for MBA Students[1].pptx
R basics for MBA Students[1].pptxR basics for MBA Students[1].pptx
R basics for MBA Students[1].pptx
 
R Programming Language
R Programming LanguageR Programming Language
R Programming Language
 
R language
R languageR language
R language
 
R as supporting tool for analytics and simulation
R as supporting tool for analytics and simulationR as supporting tool for analytics and simulation
R as supporting tool for analytics and simulation
 
Introduction to R and R Studio
Introduction to R and R StudioIntroduction to R and R Studio
Introduction to R and R Studio
 
R programming Language
R programming LanguageR programming Language
R programming Language
 
R Course Online
R Course OnlineR Course Online
R Course Online
 
R_L1-Aug-2022.pptx
R_L1-Aug-2022.pptxR_L1-Aug-2022.pptx
R_L1-Aug-2022.pptx
 
2 it unit-1 start learning r
2 it   unit-1 start learning r2 it   unit-1 start learning r
2 it unit-1 start learning r
 
UNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdfUNIT-1 Start Learning R.pdf
UNIT-1 Start Learning R.pdf
 
R programming advantages and disadvantages
R programming advantages and disadvantagesR programming advantages and disadvantages
R programming advantages and disadvantages
 
R programming presentation
R programming presentationR programming presentation
R programming presentation
 
R introduction
R introductionR introduction
R introduction
 
FULL R PROGRAMMING METERIAL_2.pdf
FULL R PROGRAMMING METERIAL_2.pdfFULL R PROGRAMMING METERIAL_2.pdf
FULL R PROGRAMMING METERIAL_2.pdf
 
Software_engineering.pptx
Software_engineering.pptxSoftware_engineering.pptx
Software_engineering.pptx
 
DATA MINING USING R (1).pptx
DATA MINING USING R (1).pptxDATA MINING USING R (1).pptx
DATA MINING USING R (1).pptx
 

Dernier

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
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
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 

Dernier (20)

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
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, ...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 

R programming Language , Rahul Singh

  • 2. CONTENTS  History  Introduction  Why R?  R Package  R GUI  Features  Getting Started  Why Use R?  Comparison with other programming languages  Merits  Demerits  Conclusion
  • 3. History  R is a programming language which was an implementation over S language.  R was first designed by Ross Ihaka and Robert Gentleman at the University of Auckland in 1993.  It was stable released on October 31st 2014 the 4 months ago ,by R Development Core Team Under GNU General Public License.
  • 4. Introduction  R is functional programming language  R is an interpreted language  R is case sensitive  R is object oriented-language  The R language is widely used among statisticians and data miners for developing statistical software and data analysis.
  • 5. Why R ?  The R statistical programming language is a free open source package.  Many statistical functions are already built in.  The most extensive modeling resources in scientific research.  The fine publishing quality graphs.  R is freely available under GNU General Public License.
  • 6. R Package  A Package is a collection of R functions with comprehensive documents.  A Package includes: R functions, Data Example, Help Files, Namespace and Description.  The default installation is kept as minimum.  The function of R could be extent by loading R packages.
  • 8. Features  Open Source: The source code of R program and the extensions could be examined line by line.  Integrating with other Programming Language: R is an interpreting language, can be rather slow, but could integrate with high efficient languages such as C, C++ or Fortran.  OS Independence: UNIX, Linux, Windows, MacOS, FreeBSD...  Command line Driven: You have to write Commands...
  • 9. Getting Started Basic Objects  Vector  List  Factor  Array  Matrix  Data Frame
  • 10. Basic assignment and operations.  Arithmetic Operations: ◦ +, -, *, /, ^ are the standard arithmetic operators.  Matrix Arithmetic. ◦ * is element wise multiplication ◦ %*% is matrix multiplication  Assignment ◦ To assign a value to a variable use “<-”
  • 11. Basic Functions Used In R Language
  • 12. Loops When the same or similar tasks need to be performed multiple times; for all elements of a list; for all columns of an array; etc. for(i in 1:10) { print(i*i) } i<-1 while(i<=10) { print(i*i) i<-i+sqrt(i) }
  • 13. Array  Array ◦ An extension of a vector to more than two dimensions ◦ a <- array(c(1,2,3,4,5,6,7,8,9,10,11,12),dim=c( 3,4))
  • 14. Programming features • Flow control statements • while, repeat, break, continue, if, return • Exceptions, using try catch blocks • Functions o Default parameters o Positional or named arguments o Generic o Anonymous
  • 15. Example • `%my%` <- function(a,b) { return 2*a + 2 *b } fibonacci <- function(n) { if(n<=2) return 1 fib <- numeric(n) fib[1:2] <- 1 for(i in 3:n) { fib[i] <- fib[i-1] + fib[i-2] } return (fib[n])
  • 16. Why use R?  Matrix calculation  Data visualization (interactive too)  Statistic analysis (regression, time series, geo-spatial)  Data mining, classification, clustering  Analysis of genomic data  Machine learning
  • 17. Comparison with other languages R Programming Python Java •It was stably released in 2014. •It was stably released in 1996. •It was stably released in 1995. •It has more functions and packages. •It has less functions and packages. •It has large number of inbuilt functions and packages. •It is an interpreter base language •It is an interpreter base language •It is interpreter and compiled based language. •It is statistical design and graphics programming language. •It is general purpose language. •It is general purpose programming language designed for web applications . •It is difficult to learn and understand. •It is easy to understand. •It is easy to learn and understand. •R is mostly use for data analysis. •Generic programming tasks such as design of software's or •Java is mostly used in design of windows applications and web
  • 18. Merits  R is a programming language and environment developed for statistical analysis by practicing statisticians and researchers.  The graphical capabilities of R are outstanding, providing a fully programmable graphics language.  R is free and open source software, allowing anyone to use and, importantly, to modify it.
  • 19.  R has over 4800 packages available from multiple repositories specializing in topics like econometrics, data mining, spatial analysis, and bio-informatics.  R is cross-platform. R runs on many operating systems and different hardware.
  • 20. Demerits  R is slow : Is an interpreting language and is not very fast. Could be 1/40 of C.  Limitation of Memory: All the objects are in memory.  R is hard to learn: One has to memorize the commands/functions, and understand the logics of programming. The fluency in R requires great time and energy.
  • 21. Conclusion  R has become a high quality open- source software environment for statistical computing and graphics  R allows the usage of many control flows, loops and user-defined functions, multiple input and output data formats  R continues to help shape the future of statistical analysis, and data science.