This is the R script repository of the "Tools for Analytics Lab - R-track" course, part of the MSc in Business Analytics at CEU.
- General overview of the R ecosystem: slides
- Introduction to R: variables, functions and vectors
- Review of the most important R object types
- Quick overview of the missed
data.frame
examples from yesterday - Exploratory data analysis with the most often used plots
- Plots outside of Excel:
dotchart
andvioplot
examples - The Grammar of Graphics in R with
ggplot2
- GitHub registration
ggplot2
exercises
- number of carburetors
- horsepower
- barplot of number of carburetors per transmission
- boxplot of horsepower by the number of carburetors
- horsepower and weight by the number of carburetors
- horsepower and weight by the number of carburetors with a trend line
data.table
exercises
- the number of cancelled flights
- the shortest flight on each weekday
- the average delay to all destination
- the average delay to all destination per destination
- plot the departure and arrival delays
- plot the average departure and arrival delays per destination
- plot the average departure and arrival delays per flight + size
- estimate the delay to Budapest