Free course · by Debugshala, Indore
R Tutorial
7 free lessons, in the order we teach them in class: start at lesson 1 and work down. Every lesson has an analogy, a diagram, code you can run or copy, a quick quiz and an FAQ.
- 7Lessons
- 1Modules
- ~1 hReading time
- FreeAlways
01R Basics
- What is R Programming? Uses, Features and First CodeWhat R programming is, who uses it and why analysts love it: vectors, data frames, CRAN packages and your first R code on a real Indore retail dataset.
- Install R and RStudio on Windows, macOS and Linux (2026)Install R and RStudio step by step on Windows, macOS and Ubuntu, check your R version, add packages, and run your first R script without common setup errors.
- R Data Types and Variables: numeric, character, logicalLearn R data types and variables: numeric, integer, character and logical, class() vs typeof(), conversion with as.*(), coercion rules, NA, NULL and dates.
- R Vectors: Create, Index, Filter and Do Vectorised MathsLearn R vectors with a week of store sales: create them with c(), seq() and rep(), index by position, name or condition, filter, and use vectorised maths.
- R Lists: Create, Access and Modify with $, [[ ]] and [ ]Learn R lists through a real grocery order: create lists, read elements with $ and [[ ]], see why [ ] differs, add or remove items, and nest and loop.
- R Matrices and Arrays: matrix(), Indexing, apply() and MoreLearn R matrices and arrays with store-by-category sales: build with matrix(), name rows and columns, index with [i, j], add totals and stack months.
- R Data Frames: Create, Filter, Sort and Summarise TablesLearn R data frames on a real orders table: create and inspect them, pick rows and columns, add columns, filter, sort and total sales with aggregate().