There is an excellent paper on how to use repeated measures in R. It is called "Notes on the use of R for psychology experiments and questionnaires" by Baron and Li, and if you can find it on the internet as html or pdf document.