Introduction to R Programming
Preface
About This Course
Schedule
DataCamp
1
RStudio and R Basics
1.1
How to install R and RStudio
1.2
RStudio interface explained
1.3
Mathematical calculations
1.3.1
Basic numerical calculations
1.3.2
More complicated calculations
1.4
R script
1.5
Assigning variables
1.6
Vectors
1.6.1
Vector calculations
1.6.2
Vector strings
1.7
Plotting graphs
1.7.1
Adding to plots (lines, points etc.)
1.8
Exercises
1.9
Applied exercises
2
Value and Object Types
2.1
Value types
2.1.1
Double (numeric) values
2.1.2
Integer values
2.1.3
Character values
2.1.4
Logical (Boolean) values
2.1.5
Date and date-time values
2.2
Object types
2.2.1
Numeric and character objects
2.2.2
Vectors
2.2.3
Factors
2.2.4
Matrices
2.2.5
Matrix calculations
2.2.6
Matrix operations
2.2.7
Data frames
2.2.8
Lists
2.2.9
Converting between object types
2.3
Exercises
2.4
Applied exercises
3
Object Extraction
3.1
Vector extraction
3.2
Matrix extraction
3.2.1
Matrices with names rows and columns
3.3
Data frame extraction
3.4
List extraction
3.5
Summary of extraction methods
3.6
Exercises
3.7
Applied exercises
4
Conditionals and IF Statements
4.1
Relational operators
4.2
Logical operators
4.3
Conditional extraction
4.3.1
Conditional extraction from vectors
4.3.2
Conditional extraction from data frames
4.4
IF statements
4.5
Exercises
4.6
Applied exercises
5
Loops
5.1
For loops
5.1.1
Matrices
5.2
While loops
5.3
Exercises
5.4
Applied exercises
6
Functions
6.1
Creating functions
6.2
Prime number calculator - example
6.3
Multiple Input Variables
6.3.1
Default options
6.4
Exercises
6.5
Applied exercises
7
Data in R
7.1
Importing data
7.1.1
Importing data from a CSV files
7.1.2
Importing data from Excel
7.2
Inspecting the data
7.3
Cleaning and preparing data
7.3.1
Validating your data
7.4
The
apply
family
7.4.1
lapply()
,
sapply()
and
vapply()
7.5
Exercises
7.6
Applied exercises
8
Debugging in R
8.1
Types of errors in R
8.2
Systematic debugging workflow
8.3
Useful debugging tools
8.4
Good debugging habits
8.5
Exercises
Appendix
A
Additional Tips
Commenting
Help
B
Cheat Sheets
R Cheat Sheets
Dr. Lewis Ramsden
Introduction to R Programming - University of York
B
Cheat Sheets
R Cheat Sheets