1
Introduction
1.1
Advantage R
2
Looking Back
2.1
S
2.2
R
3
Install R
3.1
CRAN
3.2
R IDE
4
R Graphical User Interface
4.1
RGui
5
RStudio
5.1
RStudio IDE
6
Calculator
6.1
Arithmetic Operator
6.2
Examples
6.3
More Examples
7
R Assignment Operator
7.1
Assignment Operator
7.2
Equivalent assignment
7.3
Note other symbols
7.4
Find the difference
8
R Object Assignment
8.1
R Object Assignment
8.2
R Object Example
8.3
More Examples
9
R Object Names
9.1
Naming Rules
9.2
Examples
10
R Atomic Class
10.1
Types of Variables
10.2
Quantitative (Numerical)
10.3
Qualitative (Categorical)
11
R Atomic Class: Integer
11.1
Examples
12
R Atomic Class: Double
12.1
Examples
13
R Atomic Class: Character
13.1
Examples
14
R Atomic Class: Logical
14.1
Examples
14.2
Examples: comparison
14.3
Examples: more comparisons
15
Atomic Class: Summary
15.1
R Atomic Class
15.2
Points to note
16
Vector: Numeric
16.1
Functions
16.2
Example: Numeric vector
16.3
Example:
seq
16.4
Example:
rep
17
Vector: Character
17.1
Example: Character vector
18
Vector: Logical
18.1
Example: Logical vector
19
Class Attribute
19.1
Attribute
19.2
Examples: Attribute
20
R Help
20.1
Function Help
20.2
Library and Help
20.3
General Help
20.4
Books & Manuals
21
R Help Example
21.1
Help file
22
Function: Arguments
22.1
Formal argument
22.2
Default argument value
22.3
Argument matching
22.4
The
...
argument
23
Vector: Index
24
Vector: Sampling from distributions
24.1
The Uniform Distribution
24.2
The Normal Distribution
25
Vector: Function
sample
25.1
Random Samples and Permutations
26
Vector Operation: Mathematical Function
26.1
Arithmetic Function
26.2
Example 1
26.2.1
Elementwise operation on a vector
26.3
Example 2
26.3.1
Both vectors are of the same length
26.4
Example 3
26.4.1
The longer vector is a multiple of the shorter vector
26.5
Example 4
26.5.1
The longer vector is NOT a multiple of the shorter vector
27
Vector Operation: Statistical Function
27.1
Descriptive statistics
27.2
Example 1
27.2.1
Apply function on a vector
27.3
Example 2
27.3.1
Both vectors are of the same length
27.4
Example 3
27.4.1
The longer vector is a multiple of the shorter vector
27.5
Example 4
27.5.1
The longer vector is NOT a multiple of the shorter vector
28
Vector: Implicit Coercion
28.1
Example: Implicit coercion
29
Vector: Explicit Coercion
29.1
Explicit coercion:
as.*
29.2
Example: Explicit coercion
30
Vector: Nonsensical Coercion
30.1
Non-sensical coercion
30.2
Example: Nonsensical coercion
31
Missing values
31.1
Missing values in R
31.2
Example: Numeric vector
31.3
Example: Character vector
31.4
Example: Logical vector
32
Missing values: Operation
32.1
Example: Numeric vector
32.2
Example: Logical vector
33
Housekeeping Functions
33.1
R Environment
33.2
Save Script
33.3
Save History
33.4
Save an R object
33.5
Save Workspace
34
Review Examples
34.1
Example 1
34.2
Example 2
34.3
Example 3
34.4
Example 4
34.5
Example 5
An Introductory Course in R: Basics (Part 1)
Section 5
RStudio
5.1
RStudio IDE