Here you'll find some documents that my colleague Paul Torfs and I wrote about learning R:
1. A (very) short introduction to R
The base document, with 10 pages of background and exercises and 2 pages listing useful functions (to use as a reference). Working through this document takes 1 to 2 hours (depending on your background). An old version of this document can also be downloaded from the R website (as contributed document), but the newest version can always be found here.
2. Doing "A (very) short introduction to R" in the interactive swirl environment
Instead of reading the pdf and doing the ToDo exercises, you can also go through the text and exercises in an interactive environment called swirl (developed by swirlstats.com). This short manual gets you started with the (very) short introduction to R. It also points you to some nice follow-up classes created by others.
This swirl course is relatively new, so it may still contain errors. If you find any, let me know on the issues page.
After learning the basics, you have to gain experience in building R scripts. In 5 sel-study modules you learn to set up a script step by step. The examples are from hydrology, but the exercises are useful for everyone.
4. Portable versions of R and RStudio
In case you want to take R everywhere you go (you may want to install the programs on a USB stick in case of administrator rights issues).
5. Examples of R scripts for hydrology
Here we collect scripts for hydrological data analysis, which you can adapt for your own application.
To learn R step by step, we made 8 self study modules of 1-3 hours (depending on your background):
- A (very) short introduction to R
- R Programming MOOC first part
- R Programming MOOC second part
- Basic plotting
- Pretty plotting
- Reading data files
- Matrix operations
- Spatial data
Modules 2 and 3 are swirl lessons belonging to the course R Programming (the credits go to the developers of that course). Modules 4-8 are script writing assignments. We also presented these self-study modules at the European Geosciences Union General Assembly 2018.
Hydrology and Environmental Hydraulics Group
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.