R coding for data analysts: from beginner to advanced



R programming basics | statistics | data analysis | charting | data cleaning | variable exploration | functions

What you will learn

Learn the fundamentals of programming with R

Set your working session

Explore the core tools for R coding

Create objects and functions in R

Create and recognize vectors, lists, arrays, dataframes and all the data structures in R

Convert objects

Using the logical operators

When and how to use the conditional statements

Explore your datasets

Installing and retrieving packages for extending the functionality of R

Generating random sequences on R

Extracting elements from an object or dataset

Manipulating vectors, matrices, datasets

Handling missing values and duplicates

Manipulating Dates

Import files in various formats, .csv, Excel, .txt and others

Manipulating datasets, reorganising and aggregating them

Restructuring and aggregating data

Creating graphs with basic functions and common packages

Creating and exporting reports in various formats

Understanding the basics of statistics with R

Description

This basic programming course with R for aspiring data analysts is designed to accompany a beginner in programming, from the basics of the programming language (one of the best known and most widely used in the field of data analysis) to the use of descriptive statistics.

At the end of this course the student will be able to create, import, manipulate and manage datasets. The course starts with setting up the working environment: we will see how to download, install and use some of the most important tools for using R, such as RStudio.

We will then move on to the creation of objects: R is based on certain structures that we need to know, such as vectors, matrices, lists and dataframes. Once we understand how to create and manipulate these data structures, extract elements from them and save them locally on the computer, we will move on to the use of loops and the creation of functions.

In the next section, we will look at a number of useful topics: how to set up a working directory, how to install and retrieve a package, how to get information about data, where to find datasets for testing, and how to get help with a function.

When analysing data, one sooner or later comes across dataframes known as variable x-cases. We will therefore see how to import a dataframe from your computer, or from the internet, into R. There are many functions that are suitable for this purpose, and many packages that are useful for importing data that is in some particular format, such as the formats for Excel, .csv, .txt or JSON.


We will then see how to manipulate data, create new variables, aggregate data, sort them horizontally and longitudinally, and merge two datasets. To do this, we will use some specific packages and functions, such as dplyr, tidyr or reshape2. We will also briefly see how to interface with a database and use other packages to streamline the management of somewhat larger datasets.

R is also a very important language in the field of statistics. We will therefore learn some of the basic functions, such as calculating averages per row or per column, and the most common statistical functions in the field of descriptive statistics, such as mean, median, fashion, standard deviation, displaying the distribution and more.

When it comes to data analysis, we will often find ourselves creating graphs to explain our data and analyses. For this reason, we devote a section of the course to seeing how to create graphs with both the functions of the basic library and the ggplot2 package.

In the last lessons of the course, we will see how to create and export reports and slides, summarise the topics we have seen and the functions we have used, and see the supporting material.

All sections of the course are accompanied by coding exercises and videos and scripts with solutions. You can test your knowledge with quiz and practical test with increasing levels of difficulty.

English
language

Content

Introduzione

Introduction
FAQ

First steps

Downloading and installing R
Download and installing RStudio
Customising an using RStudio
Using other IDE with R
Quiz 1: Using R with RStudio
The code

Basics of programming language

R pros and cons
Commenting the code
Basic math with R
Creating objects in R
Exercise 1 – instructions
Exercise 1 – solutions
Parentheses
Types of variables in statistics
Data structures in R
Vector
Exercise 2 – instructions
Exercise 2 – solutions
Matrix
Exercise 3 – instructions
Exercise 3 – solutions
Array
List
Factors
Exercise 4 – instructions
Exercise 4 – solutions
Dataframe
Exercise 5 – instructions
Exercise 5 – solutions
Strings
Exercise 6 – instructions
Exercise 6 – solutions
Dates
Converting Data Structures
R and the tidyverse
Exercise 7 – instructions
Exercise 7 – solutions
Relational Operators
Control Structures
Functions
Exercise 8 – instructions
Exercise 8 – solutions

Setting a Working Environment

Setting Up a Working Directory
Install and Retrieve a Package
Package repositories
How to run a .R Script
Get help in R
Websites on R

Importing and exporting data in R

Common Data Formats and Sources for Data Analysis
Data import
.csv file
Excel file
.txt file
JSON file
Zip file
Exercise 9 – instructions
Exercise 9 – solutions

Data Manipulation

Data Subsetting
The apply family
Data manipulation with dplyr
Other packages for data manipulation
Merging two datasets
Exercise 10 – instructions
Exercise 10 – solutions

Databases

Database
The data.table Package
Exercise 11 – instructions
Exercise 11 – solutions

Basics Statistics

Basic statistics with R
EDA: Basics Explorative Analysis
Data quality
Exercise 12 – instructions
Exercise 12 – solutions

Data Visualisation

Data Visualisation
Graphics with R base
Graphics with ggplot2
Exercise 13 – instructions
Exercise 13 – solutions

Publishing Analysis Results in R

Creating a Report with R and Markdown
Using Shiny
Creating an App with Shiny

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO

Check Today's 30+ Free Courses on Telegram!

X