We discuss what nested for loops are and provide an example based on computing distances between observations in R.
An interactive version of the source material is available at https://colab.research.google.com/git....
More generally, the source material is available at https://github.com/jfrench/DataWrangl....