R Programming R is the most widely used tool for statistical programming. It is powerful, versatile and easy to use. It is the first
choice for thousands of data analysts working in both companies and academia. This course will help you master the
basics of R in a short time, as a first step to become a skilled R data scientist
Course content 1. Introduction
2. Getting Started With R
The RStudio Interface
Installing and Activating R Packages
Setting the Working Directory
Basic Operations in R
Working With Variables
3. Vectors
Creating Vectors With the c() Function
Creating Vectors Using the Colon Operator
Creating Vectors With the rep() Function
Creating Vectors With the seq() Function
Creating Vectors of Random Numbers
Creating Empty Vectors
Indexing Vectors With Numeric Indices
Indexing Vectors With Logical Indices
Naming Vector Components
Filtering Vectors
The Functions all() and any()
Sum and Product of Vector Components
Vectorized Operations
Treating Missing Values in Vectors
Sorting Vectors
Minimum and Maximum Values
The ifelse() Function
Adding and Multiplying Vectors
Testing Vector Equality
Vector Correlation
Bonus Lecture: Learn Statistics with R
Practical Exercises
4. Matrices And Arrays
Creating Matrices With the matrix() Function
Creating Matrices With the rbind() and cbind() Functions
Naming Matrix Rows and Columns
Indexing Matrices
Filtering Matrices
Editing Values in Matrices
Adding and Deleting Rows and Columns
Minima and Maxima in Matrices
Applying Functions to Matrices (1)
Applying Functions to Matrices (2)
Applying Functions to Matrices (3)
Adding and Multiplying Matrices
Other Matrix Operations
Creating Multidimensional Arrays
Indexing Multidimensional Arrays
Practical Exercises
5. Lists
Create Lists With the list() Function
Create Lists With the vector() Function
Indexing Lists With Brackets
Indexing Lists Using Objects Names
Editing Values in Lists
Adding and Removing List Objects
Applying Functions to Lists
Practical Example of List: the Regression Analysis Output