SlideShare a Scribd company logo
1 of 76
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Introduction to R for Quantitative Research 
Parthasarathi Edupally 
CRISIL, GR & A 
NBT@CRISIL, Nov 2014
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Outline 
1. Motivation and Objective 
What is this module about ? 
Why learn R ?
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Outline 
1. Motivation and Objective 
What is this module about ? 
Why learn R ? 
2. Fundamentals 
Language Foundations 
Functions 
Data
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Outline 
1. Motivation and Objective 
What is this module about ? 
Why learn R ? 
2. Fundamentals 
Language Foundations 
Functions 
Data 
3. Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional Programming
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Outline 
1. Motivation and Objective 
What is this module about ? 
Why learn R ? 
2. Fundamentals 
Language Foundations 
Functions 
Data 
3. Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional Programming 
4. Further Reading and References 
Advanced Topics 
References
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Outline 
1. Motivation and Objective 
What is this module about ? 
Why learn R ? 
2. Fundamentals 
Language Foundations 
Functions 
Data 
3. Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional Programming 
4. Further Reading and References 
Advanced Topics 
References 
5. Thank You
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
What is this module about ?
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
What is this module about ? 
 An introduction to R statistical software - Just an Intro! 
 Understanding of language fundamentals than lot of 
language specific details
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
What is this module about ? 
 An introduction to R statistical software - Just an Intro! 
 Understanding of language fundamentals than lot of 
language specific details 
 Targeted people - Analysts with no formal software 
background
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
What is this module about ? 
 An introduction to R statistical software - Just an Intro! 
 Understanding of language fundamentals than lot of 
language specific details 
 Targeted people - Analysts with no formal software 
background 
 Just to give a head start in learning and using R for analysis.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Why learn R ?
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Why learn R ? 
 This is why you should : 
 Its open source, anyone can replicate your results 
 A massive set of packages for statistical analysis, machine 
learning etc 
 Specially designed for statistics and Data analysis with 
features like missing values, Dataframes, subsetting etc
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Why learn R ? 
 This is why you should : 
 Its open source, anyone can replicate your results 
 A massive set of packages for statistical analysis, machine 
learning etc 
 Specially designed for statistics and Data analysis with 
features like missing values, Dataframes, subsetting etc 
 Strong foundations in functional programming 
 Designed to connect to low level languages for high 
performance
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Why learn R ? 
 This is why you should : 
 Its open source, anyone can replicate your results 
 A massive set of packages for statistical analysis, machine 
learning etc 
 Specially designed for statistics and Data analysis with 
features like missing values, Dataframes, subsetting etc 
 Strong foundations in functional programming 
 Designed to connect to low level languages for high 
performance 
 Some drawbacks :
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Why learn R ? 
 This is why you should : 
 Its open source, anyone can replicate your results 
 A massive set of packages for statistical analysis, machine 
learning etc 
 Specially designed for statistics and Data analysis with 
features like missing values, Dataframes, subsetting etc 
 Strong foundations in functional programming 
 Designed to connect to low level languages for high 
performance 
 Some drawbacks : 
 Most of the code is written in haste to solve a pressing 
problem at hand, so code is less elegant, less faster and less 
easier to understand. 
 It is not particularly fast programming language.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Expressions
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Expressions 
 Most often when we write code we are writing an expression 
 Expression describes a computation and evaluates to a value
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Expressions 
 Most often when we write code we are writing an expression 
 Expression describes a computation and evaluates to a value 
 In Math - addition, division etc 
 All expressions can be represented by a function notation - It 
is the most general representation
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Expressions 
 Most often when we write code we are writing an expression 
 Expression describes a computation and evaluates to a value 
 In Math - addition, division etc 
 All expressions can be represented by a function notation - It 
is the most general representation 
 Types of expressions : 
 primitive expression – Numbers, Names, Strings 
 call expressions – operator(op1; op2)
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Expressions 
 Most often when we write code we are writing an expression 
 Expression describes a computation and evaluates to a value 
 In Math - addition, division etc 
 All expressions can be represented by a function notation - It 
is the most general representation 
 Types of expressions : 
 primitive expression – Numbers, Names, Strings 
 call expressions – operator(op1; op2) 
Demo
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Statements
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Statements 
 They are used to perform an action, they don’t evaluate to 
value
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Statements 
 They are used to perform an action, they don’t evaluate to 
value 
 There can be conditional and iterative statements
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Statements 
 They are used to perform an action, they don’t evaluate to 
value 
 There can be conditional and iterative statements 
 Conditional statements: 
 if-elseif-else
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Statements 
 They are used to perform an action, they don’t evaluate to 
value 
 There can be conditional and iterative statements 
 Conditional statements: 
 if-elseif-else 
 Iterative statements: 
 for() fg 
 while() fg
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Statements 
 They are used to perform an action, they don’t evaluate to 
value 
 There can be conditional and iterative statements 
 Conditional statements: 
 if-elseif-else 
 Iterative statements: 
 for() fg 
 while() fg 
Demo
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Environments
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Environments 
 They are used by the interpreter to understand the scoping 
rules i.e., where to look for variables and functions by names
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Environments 
 They are used by the interpreter to understand the scoping 
rules i.e., where to look for variables and functions by names 
 Job of an environment is to bind set of names to set of values 
(a bag of names) 
 Each name points to an object stored elsewhere in memory
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Environments 
 They are used by the interpreter to understand the scoping 
rules i.e., where to look for variables and functions by names 
 Job of an environment is to bind set of names to set of values 
(a bag of names) 
 Each name points to an object stored elsewhere in memory 
 Developers mainly use them while writing packages to avoid 
naming conflicts. 
.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Environments 
 They are used by the interpreter to understand the scoping 
rules i.e., where to look for variables and functions by names 
 Job of an environment is to bind set of names to set of values 
(a bag of names) 
 Each name points to an object stored elsewhere in memory 
 Developers mainly use them while writing packages to avoid 
naming conflicts. 
.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
User-defined functions
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
User-defined functions 
 R is designed to support functional programming style. So 
most of the computation we do will be a function call.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
User-defined functions 
 R is designed to support functional programming style. So 
most of the computation we do will be a function call. 
 Life cycle of user-defined function : 
 Function definition - name bound to that function in current 
environment (enclosing environment) 
 Function call- A new environment(calling environment) is 
created and call expression is executed
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
User-defined functions 
 R is designed to support functional programming style. So 
most of the computation we do will be a function call. 
 Life cycle of user-defined function : 
 Function definition - name bound to that function in current 
environment (enclosing environment) 
 Function call- A new environment(calling environment) is 
created and call expression is executed 
 Please note there is execution environment, environment in 
which function was called.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
User-defined functions 
 R is designed to support functional programming style. So 
most of the computation we do will be a function call. 
 Life cycle of user-defined function : 
 Function definition - name bound to that function in current 
environment (enclosing environment) 
 Function call- A new environment(calling environment) is 
created and call expression is executed 
 Please note there is execution environment, environment in 
which function was called. 
Demo
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data Type
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data Type 
 Every data will have a type associated with it. Basic types in 
R are - Integer, Double, Character and factor.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data Type 
 Every data will have a type associated with it. Basic types in 
R are - Integer, Double, Character and factor. 
 Native data types : 
 Have primitive expressions that evaluate to values of these 
types 
 Built-in functions, operators, methods to manipulate those 
values
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data Type 
 Every data will have a type associated with it. Basic types in 
R are - Integer, Double, Character and factor. 
 Native data types : 
 Have primitive expressions that evaluate to values of these 
types 
 Built-in functions, operators, methods to manipulate those 
values 
 We restrict data to be some number, vector or matrix with 
values in them. But Data is much more general and powerful 
than this. 
 Important idea in computer science is Code is also data. So 
a piece of code which does square root computation is data 
and can have type associated with it.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data Type 
 Every data will have a type associated with it. Basic types in 
R are - Integer, Double, Character and factor. 
 Native data types : 
 Have primitive expressions that evaluate to values of these 
types 
 Built-in functions, operators, methods to manipulate those 
values 
 We restrict data to be some number, vector or matrix with 
values in them. But Data is much more general and powerful 
than this. 
 Important idea in computer science is Code is also data. So 
a piece of code which does square root computation is data 
and can have type associated with it. 
 These lead us to Abstract data types (Data structures), which 
are based on the concept of objects.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Objects
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Objects 
 Objects represent information - consist of data and 
behaviour. So they are more powerful than just data.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Objects 
 Objects represent information - consist of data and 
behaviour. So they are more powerful than just data. 
 They can represent - things, properties, Interactions, 
processes
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Objects 
 Objects represent information - consist of data and 
behaviour. So they are more powerful than just data. 
 They can represent - things, properties, Interactions, 
processes 
 Type of an object is called class 
 A class is some collection of methods(functions) and 
behaviour conditions defined in it.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data structures
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data structures 
 These are abstract data types defined in R and can be 
organised according to their dimensionality and whether they 
are homogeneous.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data structures 
 These are abstract data types defined in R and can be 
organised according to their dimensionality and whether they 
are homogeneous. 
 One dimensional structures - Atomic vectors, lists 
 Two dimensional structures - Matrices, Data frames 
 Multidimensional - Arrays
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data structures 
 These are abstract data types defined in R and can be 
organised according to their dimensionality and whether they 
are homogeneous. 
 One dimensional structures - Atomic vectors, lists 
 Two dimensional structures - Matrices, Data frames 
 Multidimensional - Arrays 
 A data frame is the most common way of storing data in R, 
and makes data analysis easier
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Data structures 
 These are abstract data types defined in R and can be 
organised according to their dimensionality and whether they 
are homogeneous. 
 One dimensional structures - Atomic vectors, lists 
 Two dimensional structures - Matrices, Data frames 
 Multidimensional - Arrays 
 A data frame is the most common way of storing data in R, 
and makes data analysis easier Demo
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Simple Rules for efficiency
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Simple Rules for efficiency 
 Folder Structure : Always maintain a consistent folder 
structure for all projects.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Simple Rules for efficiency 
 Folder Structure : Always maintain a consistent folder 
structure for all projects. 
 Naming: Give sensible names to files and variables 
 Always use comments to describe every line or group of 
lines of code. 
 indentation : Follow consistent and creative indentations 
while writing code.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Simple Rules for efficiency 
 Folder Structure : Always maintain a consistent folder 
structure for all projects. 
 Naming: Give sensible names to files and variables 
 Always use comments to describe every line or group of 
lines of code. 
 indentation : Follow consistent and creative indentations 
while writing code. 
 README : Draft README file in every folder. These have 
to give brief description of files in the current folder.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Subsetting
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Subsetting 
 Subsetting allows us to succinctly express complex 
operations on large datasets. 
 They are very useful in data cleaning, which is first step in 
data analysis. 
 It basically involves selecting and modifying specific 
portions of data.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Subsetting 
 Subsetting allows us to succinctly express complex 
operations on large datasets. 
 They are very useful in data cleaning, which is first step in 
data analysis. 
 It basically involves selecting and modifying specific 
portions of data. 
 Subsetting Atomic vectors, lists, matrices, arrays and data 
frames
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Subsetting 
 Subsetting allows us to succinctly express complex 
operations on large datasets. 
 They are very useful in data cleaning, which is first step in 
data analysis. 
 It basically involves selecting and modifying specific 
portions of data. 
 Subsetting Atomic vectors, lists, matrices, arrays and data 
frames Demo
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Functional Programming Paradigm
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Functional Programming Paradigm 
 R at heart is a functional programming language - gives tools 
for creation and manipulation of functions.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Functional Programming Paradigm 
 R at heart is a functional programming language - gives tools 
for creation and manipulation of functions. 
 FP allows to write code clearly, concisely and at high level of 
abstraction.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Functional Programming Paradigm 
 R at heart is a functional programming language - gives tools 
for creation and manipulation of functions. 
 FP allows to write code clearly, concisely and at high level of 
abstraction. 
 It supports reusable software components. 
 Encourages the use of formal verification.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Functional Programming Paradigm 
 R at heart is a functional programming language - gives tools 
for creation and manipulation of functions. 
 FP allows to write code clearly, concisely and at high level of 
abstraction. 
 It supports reusable software components. 
 Encourages the use of formal verification. 
 With latest trend of Multicore processors, FP is very 
amenable to parallel programming.
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Important Advanced Topics
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Important Advanced Topics 
 Object systems in R
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Important Advanced Topics 
 Object systems in R 
 Basic Version Control with GitHub
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Important Advanced Topics 
 Object systems in R 
 Basic Version Control with GitHub 
 More Advanced Subsetting
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Important Advanced Topics 
 Object systems in R 
 Basic Version Control with GitHub 
 More Advanced Subsetting 
 Functional programming paradigm
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Important Advanced Topics 
 Object systems in R 
 Basic Version Control with GitHub 
 More Advanced Subsetting 
 Functional programming paradigm 
 Memory usage in R
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Important Advanced Topics 
 Object systems in R 
 Basic Version Control with GitHub 
 More Advanced Subsetting 
 Functional programming paradigm 
 Memory usage in R 
 Using lower level languages for better performance where 
ever required in R
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Resources
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Resources 
 Advanced R by Hadley Wickham
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Resources 
 Advanced R by Hadley Wickham 
 Structure and Interpretation of Computer Programs - Berkley 
webcast(CS61A, Fall 2013)
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
Resources 
 Advanced R by Hadley Wickham 
 Structure and Interpretation of Computer Programs - Berkley 
webcast(CS61A, Fall 2013) 
 R package documentation
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You
Introduction to 
R for 
Quantitative 
Research 
Parthasarathi 
Edupally 
Motivation and 
Objective 
What is this module 
about ? 
Why learn R ? 
Fundamentals 
Language Foundations 
Functions 
Data 
Essentials 
Basic Coding Etiquttes 
Subsetting 
Basic Functional 
Programming 
Further Reading 
and References 
Advanced Topics 
References 
Thank You 
“To understand computations in R, two slogans are 
helpful: 
Everything that exists is an object. 
Everything that happens is a function call.” 
John Chambers (Inventor of R).

More Related Content

What's hot

2010 PACLIC - pay attention to categories
2010 PACLIC - pay attention to categories2010 PACLIC - pay attention to categories
2010 PACLIC - pay attention to categoriesWarNik Chow
 
Instant Question Answering System
Instant Question Answering SystemInstant Question Answering System
Instant Question Answering SystemDhwaj Raj
 
Natural language processing: feature extraction
Natural language processing: feature extractionNatural language processing: feature extraction
Natural language processing: feature extractionGabriel Hamilton
 
Chinese Character Decomposition for Neural MT with Multi-Word Expressions
Chinese Character Decomposition for  Neural MT with Multi-Word ExpressionsChinese Character Decomposition for  Neural MT with Multi-Word Expressions
Chinese Character Decomposition for Neural MT with Multi-Word ExpressionsLifeng (Aaron) Han
 
Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...RajkiranVeluri
 
Answer Selection and Validation for Arabic Questions
Answer Selection and Validation for Arabic QuestionsAnswer Selection and Validation for Arabic Questions
Answer Selection and Validation for Arabic QuestionsAhmed Magdy Ezzeldin, MSc.
 
Meta-evaluation of machine translation evaluation methods
Meta-evaluation of machine translation evaluation methodsMeta-evaluation of machine translation evaluation methods
Meta-evaluation of machine translation evaluation methodsLifeng (Aaron) Han
 

What's hot (8)

2010 PACLIC - pay attention to categories
2010 PACLIC - pay attention to categories2010 PACLIC - pay attention to categories
2010 PACLIC - pay attention to categories
 
Instant Question Answering System
Instant Question Answering SystemInstant Question Answering System
Instant Question Answering System
 
Arabic question answering ‫‬
Arabic question answering ‫‬Arabic question answering ‫‬
Arabic question answering ‫‬
 
Natural language processing: feature extraction
Natural language processing: feature extractionNatural language processing: feature extraction
Natural language processing: feature extraction
 
Chinese Character Decomposition for Neural MT with Multi-Word Expressions
Chinese Character Decomposition for  Neural MT with Multi-Word ExpressionsChinese Character Decomposition for  Neural MT with Multi-Word Expressions
Chinese Character Decomposition for Neural MT with Multi-Word Expressions
 
Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...
 
Answer Selection and Validation for Arabic Questions
Answer Selection and Validation for Arabic QuestionsAnswer Selection and Validation for Arabic Questions
Answer Selection and Validation for Arabic Questions
 
Meta-evaluation of machine translation evaluation methods
Meta-evaluation of machine translation evaluation methodsMeta-evaluation of machine translation evaluation methods
Meta-evaluation of machine translation evaluation methods
 

Viewers also liked

Quantifying News For Automated Trading - Methodology and Profitability
Quantifying News For Automated Trading - Methodology and ProfitabilityQuantifying News For Automated Trading - Methodology and Profitability
Quantifying News For Automated Trading - Methodology and ProfitabilityQuantInsti
 
Introduction to Quantitative Research Methods
Introduction to Quantitative Research MethodsIntroduction to Quantitative Research Methods
Introduction to Quantitative Research MethodsIman Ardekani
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsAileen Balbido
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsRajesh Gunesh
 
Basic Descriptive Statistics
Basic Descriptive StatisticsBasic Descriptive Statistics
Basic Descriptive Statisticssikojp
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticskemdoby
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsAiden Yeh
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statisticsguest290abe
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpointSarah Hallum
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpointjamiebrandon
 
Ppt. types of quantitative research
Ppt.  types of quantitative researchPpt.  types of quantitative research
Ppt. types of quantitative researchNursing Path
 
Data Analysis: Descriptive Statistics
Data Analysis: Descriptive StatisticsData Analysis: Descriptive Statistics
Data Analysis: Descriptive StatisticsMahmood Ahmad
 

Viewers also liked (13)

Quantifying News For Automated Trading - Methodology and Profitability
Quantifying News For Automated Trading - Methodology and ProfitabilityQuantifying News For Automated Trading - Methodology and Profitability
Quantifying News For Automated Trading - Methodology and Profitability
 
Introduction to Quantitative Research Methods
Introduction to Quantitative Research MethodsIntroduction to Quantitative Research Methods
Introduction to Quantitative Research Methods
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Basic Descriptive Statistics
Basic Descriptive StatisticsBasic Descriptive Statistics
Basic Descriptive Statistics
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statistics
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpoint
 
Data analysis powerpoint
Data analysis powerpointData analysis powerpoint
Data analysis powerpoint
 
Ppt. types of quantitative research
Ppt.  types of quantitative researchPpt.  types of quantitative research
Ppt. types of quantitative research
 
Data Analysis: Descriptive Statistics
Data Analysis: Descriptive StatisticsData Analysis: Descriptive Statistics
Data Analysis: Descriptive Statistics
 

Similar to Introduction to R for Quantitative Research

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
 
Session1 pl online_course_19_may2011
Session1  pl online_course_19_may2011Session1  pl online_course_19_may2011
Session1 pl online_course_19_may2011LeslieOflahavan
 
Publish perish as an instruction-end learning opportunity
Publish perish as an instruction-end learning opportunityPublish perish as an instruction-end learning opportunity
Publish perish as an instruction-end learning opportunityLawrie Hunter
 
Session1_WMU_Plain_Language_Online_19May2011
Session1_WMU_Plain_Language_Online_19May2011Session1_WMU_Plain_Language_Online_19May2011
Session1_WMU_Plain_Language_Online_19May2011LeslieOflahavan
 
Session1 pl online_course_8_september2011
Session1  pl online_course_8_september2011Session1  pl online_course_8_september2011
Session1 pl online_course_8_september2011LeslieOflahavan
 
The Statistical Significance of "R"
The Statistical Significance of "R"The Statistical Significance of "R"
The Statistical Significance of "R"ppvora
 
New Content for Week 5 System Implementation and Maintenance
New Content for Week 5 System Implementation and MaintenanceNew Content for Week 5 System Implementation and Maintenance
New Content for Week 5 System Implementation and Maintenanceelliotkimberlee
 
Python For SEO specialists and Content Marketing - Hand in Hand
Python For SEO specialists and Content Marketing - Hand in HandPython For SEO specialists and Content Marketing - Hand in Hand
Python For SEO specialists and Content Marketing - Hand in HandDido Grigorov
 
Data+Science+Foundation+Program+Learnbay.pdf
Data+Science+Foundation+Program+Learnbay.pdfData+Science+Foundation+Program+Learnbay.pdf
Data+Science+Foundation+Program+Learnbay.pdfLearnbay
 
0. Course Introduction
0. Course Introduction0. Course Introduction
0. Course IntroductionIntro C# Book
 
Technical Documentation By Techies
Technical Documentation By TechiesTechnical Documentation By Techies
Technical Documentation By Techiesppd1961
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with REdureka!
 
The Editor as EAP Instructor
The Editor as EAP InstructorThe Editor as EAP Instructor
The Editor as EAP InstructorLawrie Hunter
 
Requirements Engineering: focus on Natural Language Processing, Lecture 2
Requirements Engineering: focus on Natural Language Processing, Lecture 2Requirements Engineering: focus on Natural Language Processing, Lecture 2
Requirements Engineering: focus on Natural Language Processing, Lecture 2alessio_ferrari
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with REdureka!
 
An introduction to python | Python Assignment Help
An introduction to python | Python Assignment HelpAn introduction to python | Python Assignment Help
An introduction to python | Python Assignment HelpSample Assignment
 

Similar to Introduction to R for Quantitative Research (20)

Reason To learn & use r
Reason To learn & use rReason To learn & use r
Reason To learn & use 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
 
Session1 pl online_course_19_may2011
Session1  pl online_course_19_may2011Session1  pl online_course_19_may2011
Session1 pl online_course_19_may2011
 
Publish perish as an instruction-end learning opportunity
Publish perish as an instruction-end learning opportunityPublish perish as an instruction-end learning opportunity
Publish perish as an instruction-end learning opportunity
 
Session1_WMU_Plain_Language_Online_19May2011
Session1_WMU_Plain_Language_Online_19May2011Session1_WMU_Plain_Language_Online_19May2011
Session1_WMU_Plain_Language_Online_19May2011
 
Session1 pl online_course_8_september2011
Session1  pl online_course_8_september2011Session1  pl online_course_8_september2011
Session1 pl online_course_8_september2011
 
Lec 0 p pl
Lec 0 p plLec 0 p pl
Lec 0 p pl
 
The Statistical Significance of "R"
The Statistical Significance of "R"The Statistical Significance of "R"
The Statistical Significance of "R"
 
New Content for Week 5 System Implementation and Maintenance
New Content for Week 5 System Implementation and MaintenanceNew Content for Week 5 System Implementation and Maintenance
New Content for Week 5 System Implementation and Maintenance
 
Python For SEO specialists and Content Marketing - Hand in Hand
Python For SEO specialists and Content Marketing - Hand in HandPython For SEO specialists and Content Marketing - Hand in Hand
Python For SEO specialists and Content Marketing - Hand in Hand
 
Data+Science+Foundation+Program+Learnbay.pdf
Data+Science+Foundation+Program+Learnbay.pdfData+Science+Foundation+Program+Learnbay.pdf
Data+Science+Foundation+Program+Learnbay.pdf
 
0. Course Introduction
0. Course Introduction0. Course Introduction
0. Course Introduction
 
Technical Documentation By Techies
Technical Documentation By TechiesTechnical Documentation By Techies
Technical Documentation By Techies
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
 
Description about python
Description about pythonDescription about python
Description about python
 
The Editor as EAP Instructor
The Editor as EAP InstructorThe Editor as EAP Instructor
The Editor as EAP Instructor
 
Requirements Engineering: focus on Natural Language Processing, Lecture 2
Requirements Engineering: focus on Natural Language Processing, Lecture 2Requirements Engineering: focus on Natural Language Processing, Lecture 2
Requirements Engineering: focus on Natural Language Processing, Lecture 2
 
Business Analytics with R
Business Analytics with RBusiness Analytics with R
Business Analytics with R
 
An introduction to python | Python Assignment Help
An introduction to python | Python Assignment HelpAn introduction to python | Python Assignment Help
An introduction to python | Python Assignment Help
 
R programming
R programmingR programming
R programming
 

Recently uploaded

Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLkantirani197
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICEayushi9330
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformationAreesha Ahmad
 
American Type Culture Collection (ATCC).pptx
American Type Culture Collection (ATCC).pptxAmerican Type Culture Collection (ATCC).pptx
American Type Culture Collection (ATCC).pptxabhishekdhamu51
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryAlex Henderson
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Silpa
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptxAlMamun560346
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Servicenishacall1
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bSérgio Sacani
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Monika Rani
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑Damini Dixit
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)Areesha Ahmad
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxFarihaAbdulRasheed
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfSumit Kumar yadav
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPirithiRaju
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...ssuser79fe74
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 

Recently uploaded (20)

Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICESAMASTIPUR CALL GIRL 7857803690  LOW PRICE  ESCORT SERVICE
SAMASTIPUR CALL GIRL 7857803690 LOW PRICE ESCORT SERVICE
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
American Type Culture Collection (ATCC).pptx
American Type Culture Collection (ATCC).pptxAmerican Type Culture Collection (ATCC).pptx
American Type Culture Collection (ATCC).pptx
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
Seismic Method Estimate velocity from seismic data.pptx
Seismic Method Estimate velocity from seismic  data.pptxSeismic Method Estimate velocity from seismic  data.pptx
Seismic Method Estimate velocity from seismic data.pptx
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
Chemical Tests; flame test, positive and negative ions test Edexcel Internati...
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 

Introduction to R for Quantitative Research

  • 1. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Introduction to R for Quantitative Research Parthasarathi Edupally CRISIL, GR & A NBT@CRISIL, Nov 2014
  • 2. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Outline 1. Motivation and Objective What is this module about ? Why learn R ?
  • 3. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Outline 1. Motivation and Objective What is this module about ? Why learn R ? 2. Fundamentals Language Foundations Functions Data
  • 4. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Outline 1. Motivation and Objective What is this module about ? Why learn R ? 2. Fundamentals Language Foundations Functions Data 3. Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming
  • 5. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Outline 1. Motivation and Objective What is this module about ? Why learn R ? 2. Fundamentals Language Foundations Functions Data 3. Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming 4. Further Reading and References Advanced Topics References
  • 6. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Outline 1. Motivation and Objective What is this module about ? Why learn R ? 2. Fundamentals Language Foundations Functions Data 3. Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming 4. Further Reading and References Advanced Topics References 5. Thank You
  • 7. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You What is this module about ?
  • 8. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You What is this module about ? An introduction to R statistical software - Just an Intro! Understanding of language fundamentals than lot of language specific details
  • 9. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You What is this module about ? An introduction to R statistical software - Just an Intro! Understanding of language fundamentals than lot of language specific details Targeted people - Analysts with no formal software background
  • 10. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You What is this module about ? An introduction to R statistical software - Just an Intro! Understanding of language fundamentals than lot of language specific details Targeted people - Analysts with no formal software background Just to give a head start in learning and using R for analysis.
  • 11. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Why learn R ?
  • 12. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Why learn R ? This is why you should : Its open source, anyone can replicate your results A massive set of packages for statistical analysis, machine learning etc Specially designed for statistics and Data analysis with features like missing values, Dataframes, subsetting etc
  • 13. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Why learn R ? This is why you should : Its open source, anyone can replicate your results A massive set of packages for statistical analysis, machine learning etc Specially designed for statistics and Data analysis with features like missing values, Dataframes, subsetting etc Strong foundations in functional programming Designed to connect to low level languages for high performance
  • 14. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Why learn R ? This is why you should : Its open source, anyone can replicate your results A massive set of packages for statistical analysis, machine learning etc Specially designed for statistics and Data analysis with features like missing values, Dataframes, subsetting etc Strong foundations in functional programming Designed to connect to low level languages for high performance Some drawbacks :
  • 15. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Why learn R ? This is why you should : Its open source, anyone can replicate your results A massive set of packages for statistical analysis, machine learning etc Specially designed for statistics and Data analysis with features like missing values, Dataframes, subsetting etc Strong foundations in functional programming Designed to connect to low level languages for high performance Some drawbacks : Most of the code is written in haste to solve a pressing problem at hand, so code is less elegant, less faster and less easier to understand. It is not particularly fast programming language.
  • 16. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Expressions
  • 17. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Expressions Most often when we write code we are writing an expression Expression describes a computation and evaluates to a value
  • 18. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Expressions Most often when we write code we are writing an expression Expression describes a computation and evaluates to a value In Math - addition, division etc All expressions can be represented by a function notation - It is the most general representation
  • 19. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Expressions Most often when we write code we are writing an expression Expression describes a computation and evaluates to a value In Math - addition, division etc All expressions can be represented by a function notation - It is the most general representation Types of expressions : primitive expression – Numbers, Names, Strings call expressions – operator(op1; op2)
  • 20. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Expressions Most often when we write code we are writing an expression Expression describes a computation and evaluates to a value In Math - addition, division etc All expressions can be represented by a function notation - It is the most general representation Types of expressions : primitive expression – Numbers, Names, Strings call expressions – operator(op1; op2) Demo
  • 21. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Statements
  • 22. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Statements They are used to perform an action, they don’t evaluate to value
  • 23. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Statements They are used to perform an action, they don’t evaluate to value There can be conditional and iterative statements
  • 24. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Statements They are used to perform an action, they don’t evaluate to value There can be conditional and iterative statements Conditional statements: if-elseif-else
  • 25. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Statements They are used to perform an action, they don’t evaluate to value There can be conditional and iterative statements Conditional statements: if-elseif-else Iterative statements: for() fg while() fg
  • 26. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Statements They are used to perform an action, they don’t evaluate to value There can be conditional and iterative statements Conditional statements: if-elseif-else Iterative statements: for() fg while() fg Demo
  • 27. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Environments
  • 28. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Environments They are used by the interpreter to understand the scoping rules i.e., where to look for variables and functions by names
  • 29. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Environments They are used by the interpreter to understand the scoping rules i.e., where to look for variables and functions by names Job of an environment is to bind set of names to set of values (a bag of names) Each name points to an object stored elsewhere in memory
  • 30. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Environments They are used by the interpreter to understand the scoping rules i.e., where to look for variables and functions by names Job of an environment is to bind set of names to set of values (a bag of names) Each name points to an object stored elsewhere in memory Developers mainly use them while writing packages to avoid naming conflicts. .
  • 31. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Environments They are used by the interpreter to understand the scoping rules i.e., where to look for variables and functions by names Job of an environment is to bind set of names to set of values (a bag of names) Each name points to an object stored elsewhere in memory Developers mainly use them while writing packages to avoid naming conflicts. .
  • 32. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You User-defined functions
  • 33. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You User-defined functions R is designed to support functional programming style. So most of the computation we do will be a function call.
  • 34. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You User-defined functions R is designed to support functional programming style. So most of the computation we do will be a function call. Life cycle of user-defined function : Function definition - name bound to that function in current environment (enclosing environment) Function call- A new environment(calling environment) is created and call expression is executed
  • 35. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You User-defined functions R is designed to support functional programming style. So most of the computation we do will be a function call. Life cycle of user-defined function : Function definition - name bound to that function in current environment (enclosing environment) Function call- A new environment(calling environment) is created and call expression is executed Please note there is execution environment, environment in which function was called.
  • 36. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You User-defined functions R is designed to support functional programming style. So most of the computation we do will be a function call. Life cycle of user-defined function : Function definition - name bound to that function in current environment (enclosing environment) Function call- A new environment(calling environment) is created and call expression is executed Please note there is execution environment, environment in which function was called. Demo
  • 37. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data Type
  • 38. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data Type Every data will have a type associated with it. Basic types in R are - Integer, Double, Character and factor.
  • 39. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data Type Every data will have a type associated with it. Basic types in R are - Integer, Double, Character and factor. Native data types : Have primitive expressions that evaluate to values of these types Built-in functions, operators, methods to manipulate those values
  • 40. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data Type Every data will have a type associated with it. Basic types in R are - Integer, Double, Character and factor. Native data types : Have primitive expressions that evaluate to values of these types Built-in functions, operators, methods to manipulate those values We restrict data to be some number, vector or matrix with values in them. But Data is much more general and powerful than this. Important idea in computer science is Code is also data. So a piece of code which does square root computation is data and can have type associated with it.
  • 41. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data Type Every data will have a type associated with it. Basic types in R are - Integer, Double, Character and factor. Native data types : Have primitive expressions that evaluate to values of these types Built-in functions, operators, methods to manipulate those values We restrict data to be some number, vector or matrix with values in them. But Data is much more general and powerful than this. Important idea in computer science is Code is also data. So a piece of code which does square root computation is data and can have type associated with it. These lead us to Abstract data types (Data structures), which are based on the concept of objects.
  • 42. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Objects
  • 43. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Objects Objects represent information - consist of data and behaviour. So they are more powerful than just data.
  • 44. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Objects Objects represent information - consist of data and behaviour. So they are more powerful than just data. They can represent - things, properties, Interactions, processes
  • 45. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Objects Objects represent information - consist of data and behaviour. So they are more powerful than just data. They can represent - things, properties, Interactions, processes Type of an object is called class A class is some collection of methods(functions) and behaviour conditions defined in it.
  • 46. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data structures
  • 47. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data structures These are abstract data types defined in R and can be organised according to their dimensionality and whether they are homogeneous.
  • 48. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data structures These are abstract data types defined in R and can be organised according to their dimensionality and whether they are homogeneous. One dimensional structures - Atomic vectors, lists Two dimensional structures - Matrices, Data frames Multidimensional - Arrays
  • 49. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data structures These are abstract data types defined in R and can be organised according to their dimensionality and whether they are homogeneous. One dimensional structures - Atomic vectors, lists Two dimensional structures - Matrices, Data frames Multidimensional - Arrays A data frame is the most common way of storing data in R, and makes data analysis easier
  • 50. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Data structures These are abstract data types defined in R and can be organised according to their dimensionality and whether they are homogeneous. One dimensional structures - Atomic vectors, lists Two dimensional structures - Matrices, Data frames Multidimensional - Arrays A data frame is the most common way of storing data in R, and makes data analysis easier Demo
  • 51. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Simple Rules for efficiency
  • 52. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Simple Rules for efficiency Folder Structure : Always maintain a consistent folder structure for all projects.
  • 53. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Simple Rules for efficiency Folder Structure : Always maintain a consistent folder structure for all projects. Naming: Give sensible names to files and variables Always use comments to describe every line or group of lines of code. indentation : Follow consistent and creative indentations while writing code.
  • 54. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Simple Rules for efficiency Folder Structure : Always maintain a consistent folder structure for all projects. Naming: Give sensible names to files and variables Always use comments to describe every line or group of lines of code. indentation : Follow consistent and creative indentations while writing code. README : Draft README file in every folder. These have to give brief description of files in the current folder.
  • 55. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Subsetting
  • 56. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Subsetting Subsetting allows us to succinctly express complex operations on large datasets. They are very useful in data cleaning, which is first step in data analysis. It basically involves selecting and modifying specific portions of data.
  • 57. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Subsetting Subsetting allows us to succinctly express complex operations on large datasets. They are very useful in data cleaning, which is first step in data analysis. It basically involves selecting and modifying specific portions of data. Subsetting Atomic vectors, lists, matrices, arrays and data frames
  • 58. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Subsetting Subsetting allows us to succinctly express complex operations on large datasets. They are very useful in data cleaning, which is first step in data analysis. It basically involves selecting and modifying specific portions of data. Subsetting Atomic vectors, lists, matrices, arrays and data frames Demo
  • 59. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Functional Programming Paradigm
  • 60. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Functional Programming Paradigm R at heart is a functional programming language - gives tools for creation and manipulation of functions.
  • 61. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Functional Programming Paradigm R at heart is a functional programming language - gives tools for creation and manipulation of functions. FP allows to write code clearly, concisely and at high level of abstraction.
  • 62. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Functional Programming Paradigm R at heart is a functional programming language - gives tools for creation and manipulation of functions. FP allows to write code clearly, concisely and at high level of abstraction. It supports reusable software components. Encourages the use of formal verification.
  • 63. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Functional Programming Paradigm R at heart is a functional programming language - gives tools for creation and manipulation of functions. FP allows to write code clearly, concisely and at high level of abstraction. It supports reusable software components. Encourages the use of formal verification. With latest trend of Multicore processors, FP is very amenable to parallel programming.
  • 64. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Important Advanced Topics
  • 65. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Important Advanced Topics Object systems in R
  • 66. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Important Advanced Topics Object systems in R Basic Version Control with GitHub
  • 67. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Important Advanced Topics Object systems in R Basic Version Control with GitHub More Advanced Subsetting
  • 68. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Important Advanced Topics Object systems in R Basic Version Control with GitHub More Advanced Subsetting Functional programming paradigm
  • 69. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Important Advanced Topics Object systems in R Basic Version Control with GitHub More Advanced Subsetting Functional programming paradigm Memory usage in R
  • 70. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Important Advanced Topics Object systems in R Basic Version Control with GitHub More Advanced Subsetting Functional programming paradigm Memory usage in R Using lower level languages for better performance where ever required in R
  • 71. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Resources
  • 72. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Resources Advanced R by Hadley Wickham
  • 73. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Resources Advanced R by Hadley Wickham Structure and Interpretation of Computer Programs - Berkley webcast(CS61A, Fall 2013)
  • 74. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You Resources Advanced R by Hadley Wickham Structure and Interpretation of Computer Programs - Berkley webcast(CS61A, Fall 2013) R package documentation
  • 75. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You
  • 76. Introduction to R for Quantitative Research Parthasarathi Edupally Motivation and Objective What is this module about ? Why learn R ? Fundamentals Language Foundations Functions Data Essentials Basic Coding Etiquttes Subsetting Basic Functional Programming Further Reading and References Advanced Topics References Thank You “To understand computations in R, two slogans are helpful: Everything that exists is an object. Everything that happens is a function call.” John Chambers (Inventor of R).