🚗 Video too fast or too slow? Click the gear icon ⚙️ at the bottom-right to change the speed!
Lesson code
Please download the zip folder below to code along with the instructor.
You need to unzip this folder to code along. Or “Extract All” on Windows. See our video explanation of this if you are unsure.
Lesson notes
The written guide below is an accompaniment to the lesson video. You may read through it if you prefer written tutorials to video content.
Why when we calculate each person’s weight rank by sex we get a rank with decimals?
Good question! In this dataset, there were some cases where multiple people had a the same weight, therefore they are all tied for the same rank. In such cases, the rank() function calculates the average rank and assigns it to all of them. For example, there are 2 people weighing 115 kgs in the female… Read more »