
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
In this lecture we will get an overview on what we will learn in this course.
We will approach what I name the Learning Loop - discussing some strategies on how to approach the course material to improve the success rate of the students in this course.
In this lecture we will set up R base on our Windows machines and make the first step in our R programming journey. You will learn to:
Install R;
Understand R interface for simple calculations;
Note: This tutorial is aimed at Windows users, to install on mac see: https://www.datacamp.com/community/tutorials/installing-R-windows-mac-ubuntu
In this lecture, we will download our main software to program in R - RStudio. RStudio is probably the most famous GUI(Graphical User Interface) to program in R and is really user-friendly.
We will learn how to:
Install R Studio;
Note: This lecture is aimed at Windows users. See this blog post for instructions to install R Studio on a Mac: https://medium.com/@GalarnykMichael/install-r-and-rstudio-on-mac-e911606ce4f4
Slides Lecture where we will explore some of the fundamental concepts about vectors and R environment.
In this lecture we will explore the concept of R objects such as vectors and talk a bit about how you can deal and interact with the R environment.
In this lecture we will have our first exposure to coding in R Studio, using R as a calculator.
What you will learn:
Summing two numbers in R;
Subtracting two numbers in R;
Multiplying two numbers in R;
Dividing two numbers in R;
Operations order in R;
In this lecture we will check how we can call mathematical functions in R Studio.
What you will learn:
Compute a square root of a number;
Compute a exponential of a number;
Compute a logarithm of a number;
Checking the ? command to access help on functions.
In this lecture we are going to create our first vector and understand some basic concepts of the R environment.
You will learn how to:
Create vectors with the command c();
Create objects in the environment;
Removing objects from the enviroment;
Understanding the data type of R objects;
In this Lecture we are going to understand three important concepts regarding indexing. You will learn how to do:
Numeric Indexing;
Slicing Indexing;
Multiple selection Indexing;
In this lecture we are going to perform calculations with vectors. You will learn how to:
Sum vector elements;
Summing two vectors;
Multiplying two vectors;
Apply functions to vectors;
In this lecture we will see some more functions that we can apply on vectors and explore further arguments of these functions.
You will learn how to:
Compute median, mean and standard deviation of a vector;
Sort vectors;
Extract the length of vectors;
Knowing how to deal with NA, NaN and Inf.
In this lecture we are going to explore comparison operators. You will learn how to:
Use > and < operators;
Apply equality or inequality operators;
Use returning vectors from comparison operators as indexes;
In this lecture we are going to explore how we can label vector elements. You will learn how to:
Use the names property;
Index by name;
Powering up the which command;
Modify vector elements in R by assigning new values to specific positions, changing ranges and conditional replacements, extending length, and deleting elements with index negation.
Explore how R handles vectors, performing mean, max, and variance calculations just like in Excel. Compare R with Excel and SQL, illustrating vector operations and column-based queries.
Learn how to complete and debug R coding exercises on the Udemy platform, including summing vectors, removing NA values, and using the solution folders to check and run code.
In this lecture we will uinderstand the difference between underlying data types and class level data types - exploring the most common data types in R.
In this lecture we are going to check the class of elements in vectors and also check how we can test the class of a variable in the environment.
In this lecture we will investigate a new data type: factors!
Explore how to work with dates in R, convert strings to date objects with as.Date, handle date formats, and extract day, month, and year for time series analysis.
Master arrays and matrices in R by creating multi-dimensional data with the array function and matrix constructor, then index and name dimensions to access elements.
In this lecture, we are going to get introduced to our first multi-dimensional object, the Array!
In this lecture, we are going to manipulate Arrays and use index properties to access element!
In this lecture we are going to learn how to modify multi-dimensional objects!
In this lecture we are going to explore the dimnames property of arrays and check a few other properties.
In this lecture we are going to learn the rbind and cbind commands to combine arrays!
In this lecture we are going to learn how to construct matrixes and check the similarities between matrixes and arrays!
Create and manipulate matrices in R through element-wise operations and dimension checks. Practice dot product multiplication using % and understand inner and outer dimensions to avoid non conformable arrays errors.
Learn how data frames and lists enable multi-type data in R, with data frames as two-dimensional tables akin to Excel, and lists as flexible containers.
In this lecture we will learn how to create this new object, the Data Frame!
In this lecture we will learn how we can expand Data Frames with the cbind and rbind commands!
In this lecture we are going to learn how we can remove rows or columns from data frames.
In this lecture we are going to explore a new object in R - R Lists!
In this lecture we are going to see examples on how we can index list elements.
Learn how to remove elements from an R list by assigning null, compare double bracket and single bracket indexing, and see why dollar notation needs named elements.
Catch up on the course by revisiting R fundamentals—objects, indexing, data types, and single- and multi-dimensional structures—and prepare for more applied data work with real Walmart data examples.
So, you've decided that you want to learn R or you want to get familiar with it, but don't know where to start? Or are you a data/business analyst or data scientist that wants to have a smooth transition into R programming?
Then, this course was designed just for you!
Hear what other students have to say first:
"I came to this course after an online university course *cough coursera cough* left me crying. The entire curriculum that this class covers was what they covered in week 1, and from what I've heard, R has a very steep learning curve. The extra time taken to even walkthrough installation is clearer here. It is much appreciated. You get lots of opportunities to practice, follow along, and really build your knowledge step by step." 5 star review by a Udemy user
"A really really good course for beginners in R, highly recommended. Everything is well explained in detail and enough coding exercises to get you familiarize with concepts before moving to the next section.
Thanks for this Ivo, appreciated." 5 star review by a Udemy user
"Easy to understand, calm and clear explanation. Covered points which are ignored by other tutors. Great" 5 star review by a Udemy user
This course was designed to be your first step into the R programming world! We will delve deeper into the concepts of R objects, understand the R user interface and play around with several datasets. This course contains lectures around the following groups:
Introductory slides lectures with the most well-known commands for each type of R object.
Code along lectures where you will see how we can implement the stuff we will learn!
Test your knowledge with questions and practical exercises with different levels of difficulty!
Analyze real datasets and understand the thought process from question to R code solution!
This course was designed to be focused on the practical side of coding in R - instead of teaching you every function and method out there, I'll show you how you can read questions and examples and get to the answer by yourself, compounding your knowledge on the different R objects.
At the end of the course you should be able to use R to analyze your own datasets. Along the way you will also learn what R vectors, arrays, matrixes and lists are and how you can combine the knowledge of those objects to power up your analysis.
Here are some examples of things you will be able to do after finishing the course:
Load CSV and Excel files into R;
Do interesting line plots that enable you to draw conclusions from data.
Plot histograms of numerical data.
Create your own functions that will enable you to reutilize code.
Slice and dice Data Frames, subsetting data for specific domains.
Join thousands of professionals and students in this R journey and discover the amazing power of this statistical open-source language.
This course will be constantly updated based on students feedback.