A Short Introduction to R
1
Cover
2
Prerequisites
3
Welcome
3.1
Why read this book?
4
Introduction to R
4.1
History of R
4.2
R Programming Features
5
R Studio Overview
5.1
Console Pane
5.2
Environment Pane
5.3
Files, Plotting, Packages and Help Pane
5.3.1
Files
5.3.2
Plots
5.3.3
Packages
5.3.4
Help
6
Basic Operations in R
6.1
Basic Commands
6.2
Airthmetic Operations in R
6.2.1
Addition & Substraction
6.2.2
Multiplication & Division
6.2.3
Squaring a number
6.2.4
Square Root
6.2.5
Integer Division- Returns Integer after division
6.2.6
Modulus- Returns Remainder after division
6.2.7
Operators Precedence and Associativity
6.3
Relational Operators in R
6.4
Logical Operations in R
7
List in R
7.1
Name List Element in R
7.2
Accessing Elements of List
8
Vectors
8.1
Creating a Vector
8.2
Class of Vector
8.3
Adding Vectors of different type
8.4
Accessing elements of vectors
8.5
Creating Vector using In Built Functions
8.6
Let’s try to repeat vectors
8.6.1
Arithmetic Operator in Vectors in R
9
Logical Operations in R
9.1
Logical Operations in R
9.2
Comparing vectors of different length?
9.3
Logical Operands in R
10
Matrices in R
10.1
What are Matrices?
10.2
Extracting Row/Column from Matrices
10.3
Operations in Matrices
10.3.1
Arithmetic Operation in Matrices
10.4
Transposing a Matrix
10.5
Common Matrix Operations in R
10.6
Naming Matrix row and column
11
DataFrame
11.1
What is a Data Frame?
12
Functions in R
12.1
Inbuilt functions in R
12.2
Custom Function Creation
12.3
Function without Argument
12.4
Create a function without an argument.
13
Apply Family Functions
13.1
apply()
13.2
lapply
13.3
sapply
13.4
tapply
14
Acknowledgement
Published with bookdown
A Short Introduction to R Programming
A Short Introduction to R Programming
Manish Patwal
2020-04-23
Chapter 1
Cover