Programming with R, Monash University, 28 September 2015
Welcome
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:
- we have to use something for examples;
- it’s free, well-documented, and runs almost everywhere;
- it has a large (and growing) user base among scientists; and
- it has a large library of external packages available for performing diverse tasks.
- Statistics focus.
- Bioconductor for bioinformatics tasks. Several popular Bioconductor packages were developed in Melbourne at the Walter & Eliza Hall Institute, so local expertise is available.
But the two most important things are to use whatever language your colleagues are using, so you can share your work with them easily, and to use that language well.
Prerequisites
An understanding of the concepts of files and directories (including working directory) is required.
Though not required, we often use RStudio when teaching this lesson. You can find our introduction to RStudio here.
Data
Topics
Alternative introductory lesson
M1. Introducing R, analyzing data
Standard Software Carpentry R course
- Analyzing patient data
- Creating functions
- Analyzing multiple data sets
- Making choices
- Command-Line Programs
- Best practices for using R and designing programs
- Dynamic reports with knitr
- Making packages in R