Hi everyone,

I have attached four files. Please save them in a folder called "R tutorial" on your desktop. If you have problems because the files are integrated into this email (that sometimes happens because they are text files), you can download them separately from: http://www.bcs.rochester.edu/people/fjaeger/.

1) I have attached a data set that we will use in session 1 (wh.tab). It comes from a 2 x 2 self-paced reading study on the processing of embedded wh-questions (Hofmeister, P., Jaeger, T.F., Arnon, I., Sag., I.A. & Snider, N. to appear. Locality and Accessibility in Wh-Questions. Proceedings of Linguistic Evidence 2006, Tübingen.). Please do not distribute it. The data set is only meant to be used for teaching purposes.

2) I have also attached a list of R commands that we will use during the class (linearmodel.R). I want you to try one thing out of that file in preparation for the class. Try to load the data file I have attached into R. Start by opening R and then opening the R file "linearmodel.R" (use the top-left menu in R "File" --> "Open script ...". There are a lot of comments on the top of the file. Ignore them. Some way down, but still very much at the top of the file, you will see the following command (do not copy it from here - the quotes can cause problems when copied):

# STEP 1: loading data from a file
wh<- data.frame(
     read.delim(file="C:/Documents and Settings/florian/Desktop/R tutorial/wh.tab",
     header=F,
        col.names=c('EXP','WH1','WH2','ITEM','SUBJ','Lpos','Wpos','WORD','REGION','RTraw','zRTraw','RTresidual','zRTresidual','CORRECT'),
))

I would like you to import the wh.tab data into R. Note that you will have to use the file name (and path) from your computer. Just replace  "C:/Documents and Settings/florian/Desktop/R tutorial/wh.tab" with whatever the address of the file is on your computer (windows users can right click on the file and select "Propterties" to see the file's location). Don't worry if it does not work, we will also do this together in the class (but pls give it a try). If the file imports correctly, there should be no warning and you should be able to see its content by typing "wh" into the R shell.

The most up-to-date version of the linearmodel.R script will be available tomorrow morning at http://www.bcs.rochester.edu/people/fjaeger/ (mostly the current version has everything we will need, but there are some new commands I want to add before tomorrow).

3) I also have prepared and attached a small list of R commands (preparation.R) that allow you to familiarize yourself with the most basic functions of R. It should take no more than 8 minutes to complete the commands in that file. I strongly recommend that you give it a go. Open the preparation.R file in R as an R script (The menu on the top-left: "File" --> "Open script ..."). Windows users can then execute lines in the script by pressing CTRL-R (you can also execute several lines at once, by selecting them and then pressing CTRL-R). Mac users have to copy the lines from the script into the R shell window.

4) oh, right. The final file contains the updated enrollment information. Thanks again to all of you who switched to the less full class. Now both sessions are pretty much at the limit.

See you all tomorrow,

Florian

T. Florian Jaeger                              
Assistant Professor
Brain and Cognitive Sciences,
University of Rochester,
Meliora Hall, Box 270268,
Rochester, NY 14627-0268
USA

P: (585) 276 3611
E: fjaeger@bcs.rochester.edu
U: http://www.bcs.rochester.edu/people/fjaeger/