
Welcome to the course
Here we show you how to install R and R studio
Set the working directory. The working directory is the folder for your project. It is where you save your scripts, data, and everything you need for your project. Setting it in R makes it easy to read and write files among other things
What are variables and what are they used for? How to create them?
A demo on how to create variable and how to use them
Definition of different types of vectors.
Demo on different types of atomic vectors
Lecture on what are matrices and arrays
Demo session on matrices and arrays
Quick into to lists
List demo
Intro to data frames
Quick demo on data frames
Slicing, filtering, or subsetting the different types of data.
Demo about slicing or subsetting atomic vectors
Demo about slicing or subsetting atomic lists
Demo about slicing or subsetting atomic data frames
Importing data and render it to a data frame and filtering it
Definition of packages and how to install them
About the packages in the tidyverse set of packages
Import and export data. readr import and export are faster and return tibbles rather than data frames
Modern ways to slice (filter), select variables, creating new variables (mutate), and sort (arrange) data. More efficient than base R
Create a pipeline of a chain of instructions to be taken on a dataset.
Use the tidyverse packages to summarize the data neatly.
The power of piping actions
Transform data from wide to long format and from long to wide format
Lecture about merging data frames together. Using the dplyr joins to merge data
Demo of dplyr joins
The syntax of running if else in R
What are loops? How to write for and while loops in R
Some Base R functions. And explanation of parameters
We show examples of how to write your own funcion
An introduction to plotting with Base R
Some cool plots to begin. Data from the National Football League (NFL)
Add layers to combine multiple geoms. Also modify the global and local aesthetic mappings
A transformation of the game data set
More on different types of charts.
Showcase the idea of faceting in ggplot
Add a tittle or subtitle to your chart. Also change x and y-axis labels. Change the position of the legend and more
Use the esquisse package as a helper to get you started with ggplot
Are you nervous or excited about learning how to code? Are you a beginner who wants to get better at learning R the right way? Would you like to learn how to make cool looking and insightful charts? If so, you are in the right place.
Learning how to code in R is an excellent way to start. R is one of the top languages used by data scientists, data analysts, statisticians, etc. The best thing about it is its simplicity.
R was introduced to me in the summer of 2008 as an intern at a marketing firm; since then, I have been a loyal user. Along with SAS, I use it daily to conduct data analysis and reporting. R is one of my top go-to tools. I start with the basics showing you how I learned it, and then I teach it at a pace comfortable for a beginner.
We are living in exciting times, and the future looks bright for those skilled in programming. Industries are using data more and more to make crucial decisions. They need experienced analysts to help design data collection processes and to analyze it. Where do you fit in this picture now and tomorrow? Learning R sets you now and will sustain you for the future.
R was designed mainly for statisticians or those who did not have a computer science background, hence its intuitiveness. R is a free and open-source programming language. It will not cost you anything to have R installed and running on your computer. R is open-source, meaning that contributors can improve its usability by creating packages. Packages contain functions to help users solve specific problems that R’s founders did not think of. It would be a pleasure to see you grow to become a contributor to R someday.
Although R itself is mighty, it is not the best place to write R codes. We will write R codes (or scripts) in R studio. R studio is a powerful editor for R. You will learn all about it in this course.
Here are some of the things you will learn in this course:
1. Download and install R and R studio
2. The different data structures, such as atomic vectors, lists, data frames, and tibbles. How to create and use them
3. How to import an excel or a CSV file into R
4. Create functions
5. How to execute chunks of code following an if-else logic
6. Lean R studio short cut keys to increase your efficiency and productivity
7. How to summarize data
8. How to transpose data from long format to wide format and backward
9. How to create powerful easy to read pipelines using purrr and dplyr packages
10. Introduction to base R plots
11. Ggplots
12. And more
Thanks for taking the time to check out my course. I cannot wait to help you get started with R and R studio. If you have any questions, please message me or check out the free preview lecture to learn more.