Basics of R

Data import and manipulation, graphs, functions, modeling
R. Condit
Ohio State University Department of Music
May 2013

1 Course overview

The course will start with basic R, covering how to import and manipulate data. We will subsequently cover three main topics: graphs, functions, and basic regression models.

During the first half of each session, I will explain methods and present examples of their use; in the second half, students will work on their own using the same methods. Datasets will be provided, but students are encouraged to bring their own data as well. A course web site will provide sample code, data, and a list of key R functions. Students should have their own computer to work on during the sessions, know the file system on it (ie, how to find files by typing the path plus file name), and be familiar with ascii text files.

1.1 To join

1.2 Schedule

2 Software required

3 Course web site

4 Contents and approximate scheduling

  1. Basics of R [day 1]
  2. Graphs [start day 1, continue day 2]
  3. Power of R (a brief introduction of things spreadsheets can’t accomplish) [day 2]
  4. Modeling with standard regression [day 3]
  5. Creating your own functions [day 4]
  6. Advanced topic: Multi-level models [if time and interest are available]

5 Key R functions