
Slides for the Course Introduction
Explore crafting complex arithmetic expressions in R by writing formulas as code, mastering parentheses, exponents, and base-specific logs, and using log and exp for time series transformations.
Explore how to create vectors in R with the c function, building numeric, character, logical, and complex vectors, and use mode to identify data types.
Learn to generate numeric sequences in r with seq and colon notation, specifying start, end, and a gap; see 2 to 20 by twos and 5 to -5 by -2.
Learn to create vectors with named elements in R using names() and length() to count elements, illustrated with a gender count example for females and males.
Learn how cbind combines multiple vectors into a matrix column. Apply conditions to subset vectors, such as ages over 25 and filtering by gender to return IDs.
Create matrices with a matrix function using rows and columns, observe default column-wise filling. Build a 3 by 4 matrix from 1 to 12, then fill by rows by setting by row to true.
Create a matrix from a vector and assign three rows, then explore its attributes with mode, length, and dimension, and obtain rows and columns using nrow and ncol.
Name the rows and columns of a matrix in R with the time names function by passing a list of three row ranges and column labels (males, females).
Explore matrix subscripting in R by selecting rows and columns with square brackets, using blanks for all, colons for ranges, and negatives to omit, creating a new matrix.
Explore array attributes in R, including mode, length, and three dimensions, assign dimension names (A–D, X1–X3), and learn subscripting to extract data using blank, positive, negative, or logical indices.
Learn how lists enable multi-modal data in R by storing various object types, from vectors and matrices to logical arrays, and discover how to create and manipulate simple lists.
Explore list attributes by using length to count elements, names to reveal element identifiers, and mode to identify multimode data types within lists.
Reference list elements with double brackets; access first (numeric vector) and second (matrix of character values) with single brackets, and use the dollar sign for elements like vec; apply mode.
Append elements to a list using square brackets or a dollar sign to name items. Create and populate empty lists with a matrix and a numeric vector.
Learn to subset a data frame by selecting columns and rows with positive, negative, and logical subscripts. Filter temperatures greater than 85 Fahrenheit and identify the days meeting that condition.
Understand what are categorical variables
A clear understanding of Factors and Factor levels in R. Also how to create factors
Learn step by step about how can you create factors in R
Learn step by step about how can you create factors with factor levels in R
This lecture provides you with the understanding of how can you manipulate factor levels. i.e how to change factor levels in R
This lecture takes you in to how can you use regular expressions in R by making use of gsub and grep functions. A data frame is used throughout.
*Learn R Programming by Coding Along*
Are you starting you R programming journey? Are you a complete beginner in programming?
This course is suitable for for!
Why learn R using this course?
This course covers all the theory needed for the understanding of writing a well neat R code. The latest version of R and R Studio is used to cover all the required concepts for everyone who wants to have a career in the fields like:
Data Analyst
Quantitative Analyst
Data Scientists
Financial Analysts and many other high paying careers
By the end of this course you will have mastered:
1. The Basics of R
R Data Types
R for Basic Maths
Complicated Arithmetic formulas using R programming
2. Data Structures in R
Vectors
Matrices
Arrays
Data frames
Lists
3. Working with Categorical Data
What is categorical Data?
Factors in R programming – what are factors in r
Creating factors
Regular expression – grep and gsub functions in r
4. Functions in R
Calling R functions
Writing R functions
5. if statements
Stand-alone statement
else if & else statements
using if statements in functions
nested if statements
switch function
6. Loops
what is a loop?
for loops
while loops
nested loops
using loops within a function
7. The apply family of functions
apply function
lapply function
sapply function
tapply function
8. Importing Data into R with tidyverse
read a csv file in r
read an excel file in r with tidyverse
9. Data Manipulation & Transformation in R
Sorting, Appending and Merging
Duplicated Values
Restructuring with reshape package
Melting and Casting
Restructuring with tidyr package
Gather and spare
Data Aggregation
10. dplyr package
Sorting
Subscripting
Merging
Aggregation
What is the pipe operator in r?
11. data.table package
Setting Key & Subscripting
Merging & Aggregation
I'm certain you will enjoy this course!