Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
R Tidyverse Reporting and Analytics for Excel Users
Rating: 4.5 out of 5(782 ratings)
6,902 students

R Tidyverse Reporting and Analytics for Excel Users

From Excel To Big Data and Interactive Dashboard Visualizations in 5 Hours
Created byJonathan Ng
Last updated 8/2021
English

What you'll learn

  • How R implements common Excel functions and how it can actually be faster, easier and more flexible than the familiar Excel methods. By the end of this course you will have the knowledge to work with large sets of data faster and easier than you ever thought possible. This course uses the tidyverse libraries in R which provide an elegant solution for solving 99% of our reporting requirements. Tidyverse is incredibly well supported and by focusing solely on this one set of libraries we can massively shortcut the amount of time that is required to get up and running with R. Many beginner courses in R will start teaching what is known as base R which covers the original methods for working with R that have been enhanced and simplified through the tidyverse. Although it maybe useful to have some understanding of base R it is neither a requirement of this course or a requirement to becoming really productive in the R language. As we go through the exercises we are going to be comparing to the most common way that processes are typically carried out in Excel.

Course content

6 sections42 lectures5h 16m total length
  • Intro0:40

    R programming for beginners and people wanting to learn the Tidyverse methodology for learning R. Tidyverse is a widely used modern standard for using R which makes it very efficient for working with data. If you want to learn R programming then you want to learn Tidyverse. This course has been designed specifically with Excel and database users in mind. Excel terminology and references are used throughout the course to help link new r programming skills to your existing Excel skill set. 

  • About Your Instructor & How This Course Came to Be2:59
  • Why Use R?6:37

    R programming with tidyverse can simplify, speed up, scale up and automate many of the tasks normally done in Excel. For years I worked with Excel, VBA and SQL databases. I'd never even heard of R programming until a good friend mentioned it to me. 

  • How to Get the Most out of this Course3:08

    R Programming provides an interactive way of working with data which shortens the time to see input and results. This makes R programming a great language to learn quickly. To get the most out of this course I recommend completing all of the lectures first to get a good overview and solutions to common problems. After completing the lectures take advantage of the interactive nature of R programming to tweak and experiment with code to rapidly learn the language.

  • Accelerated Learning Techniques for Using The Example Files6:36

    How to use the example R code that comes with this course to more rapidly learn R programming. 

  • Setting up R9:00

    What you need to install to get up and running with R programming and tidyverse. 

  • Setting up R Extra Points1:11

    Microsoft R vs the Cran distribution of R. What's the difference and what should you use to setup your R programming environment. 

  • Foundations2:33

    R programming for beginners? Learn and get setup with Tidyverse. Learn the Tidyverse syntax and skipping over Base R programming can shortcut your journey to learning R programming.

  • Loading Data13:30

    Learn to load data using Tidyverse R programming. Note the difference between Tidyverse read_csv and Base R read.csv

  • R Projects and Working Directories5:16

    R Projects makes your r programming more portable when you send it to different users. Many r programming courses will teach the use of set working directory. R projects solve this requirement more elegantly. 

  • Loading Data Extra Points1:25

    R Projects makes your r programming more portable when you send it to different users. Many r programming courses will teach the use of set working directory. R projects solve this requirement more elegantly. 

  • Calculated Columns9:02

    Using the Tidyverse methodology for R programming we can add and update calculated columns in our datasets using the mutate function. 

  • Filtering2:15

    In this lecture we will review how to filter our data using the Tidyverse methodology for R programming

  • Pivoting with R for data science vs Pivoting with Excel16:38

    Excel users tend to think about pivoting data very differently to data scientists.


    In this lecture, we're going to go over how to pivot data in R and perhaps even more importantly how to unpivot it.


    In Excel, you're probably familiar with the 4 sections of a pivot table

    Filter, Rows, Columns and values


    pivoting is how we aggregate data.


    This aggregated data is useful for


    1. Compacting our data when there is too much of it to deal with

    2. Getting an overall sense of our data

    3. Setting up charts

    4. Reporting


    Data is grouped by either rows which creates a longer vertical summary or columns which creates a wider horizontal summary.


    In Excel it's common to use pivot tables to create 2 dimensional summary reports using both rows and columns.


    For reporting this can be useful as we can more efficiently utilise both horizontal and vertical space to visualize our data.


    When it comes to analysis and data science work though it's more useful to have data in a long or tidy format.


    If you'ved worked with Excel for a while you've probably recieved the output from a pivot table that doesn't contain the underlying data and is thus difficult to use for any further analysis.


    Long or tidy format is how the computer needs to the data to be formatted for almost all processing.


    Because of this it's likely that an analyst will spend far more time reversing the results of data that has been transposed horizontally.


    When we go through the code I will show you how to use all of these functions.


    As you get more into data science you'll probably notice that it tends to be more useful to perform all aggregations through the group_by function without also using the pivot_wider function to horizontally transpose the results.


    This leaves the data in a format that can subsequently pipped into other functions like data visualizations more easily.

  • Vlookups to Joins9:07
  • Getting Data Into Excel with Power Query7:31

    Here we will go over how to export your data from an R program and import it into Excel using Power Query. 

  • Data Visualisation Libraries to Install for this section0:56

    R programming libraries to install for data visualization. 

Requirements

  • You should be comfortable with vlookups, if statements and pivot tables in Excel

Description

If you use Excel for any type of reporting or analytics then this course is for you. There are a lot of great courses teaching R for statistical analysis and data science that can sometimes make R seem a bit too advanced for every day use. Also since there are many different ways of using R that can often add to the confusion. The reality is that R can be used to make your every day reporting analytics that you do in Excel much faster and easier without requiring any complex statistical techniques while at the same time giving you a solid foundation to expand into those areas if you so wish. This course uses the Tidyverse standards for using R which provides a single, comprehensive and easy to understand method for using R without complicating things via multiple methods. It's designed to build upon the the skills you are already familiar with in Excel to shortcut your learning journey. 

When I first started using R I thought that it could be a good replacement for the automation type processes I used to write in VBA. This can be quite off putting for a lot of Excel users as VBA often adds an extra layer of complexity to your work and is often only something which is done to automate a process which has already been established in Excel. One of the key benefits of Excel is that you are working directly with the data without having to go through the complexity and overhead of using a programming language. 

Programming languages such as VBA are actually very difficult for working with data as there isn't even any concise way of referencing common data elements such as named table columns. To carry out an operation on every row would take several lines of code which runs slow and ends up hiding your formula which actually contains your business logic. 

Despite all of this people use VBA anyway as once you invest the time to setup your processes you can run the exact same steps thousands of times with a click of a button. 

What if there were a way to work directly with your data as simply as Excel but also have more programming power than VBA? That's what R can do for you. 

Since I've started using R people have asked me when it would be beneficial to use R instead of Excel. Here are some examples

1. vlookups and sumifs on large datasets can run very slowly in Excel. I've helped people to replace multiple lines of vlookups that take 80 minutes to run in Excel with a single function in R that takes less than 1/10th of a second. 

2. Exploring and analysing your data in R can be Viewed in a simple table like Excel but also has a wide range of other methods which can be more effective.

3. Dashboards and visualisations are much richer and easier to construct than in Excel

4. Distributing your work in Excel can be beneficial since almost everyone has Excel installed. The problems with this are that not everyone always has the same version of Excel or addins installed which means your work might not be compatible. Also files are usually emailed around which can very quickly lead to hundreds of untracked copies of your Excel files with slight variations in them. The outputs from R can be simple Excel or csv files however your output can also be a web app that can be centrally stored and tracked on a server compatible with any web browser on your computer or smart phone. 

5. Team collaboration and version control in Excel is done via shared workbooks and track changes. Turning on these features in Excel disables some of Excels best features and still results in file locking. Team collaboration in R is done on github which allows you to easily work across teams without file locking issues and full audit histories of your work. 

The beauty of R is that once you start using it you will no longer have to make a special investment of time to automate your processes after your analysis is done. Practically anything that you can do in Excel you'll be able to do faster and better for even your first round of analysis and will leave you with an script which means your work is reproducible and automated from the very beginning. 

Even though your existing Excel skills will help you to pick up R one of the hardest things is that you're so familiar with Excel that it's too easy to keep on using it. I used Excel for years and spent thousands of hours studying how to use it more efficiently, I even taught advanced courses in it. It seemed obvious to me at the time that it was one of the most efficient ways to work with data. Even though working with a programming language might be more powerful it often had too much over head and was too removed from the actual data analysis. R is the programming language I wish I learnt 20 years ago. Perhaps somewhat counter intuitively you'll end up spending less time thinking about how to put a piece  of work together than Excel and more time looking at your data in new ways that you've probably never even thought of. 

Who this course is for:

  • If you are currently using Excel to deliver a regular reporting requirement this course will be a good fit for you. This course is designed to introduce R to non programmer Excel users who are already familiar with Pivot Tables, vlookups ,if statements and charts.