The best way to learn how to program is to do something useful, so this introduction to R is built around a common scientific task: data analysis.
Our real goal isn't to teach you R, but to teach you the basic concepts that all programming depends on. We use R in our lessons because:
But the two most important things are to use whatever language your colleagues are using, so that you can share you work with them easily, and to use that language well.