Sunday, April 26, 2015

Learning R: A Tutorial for Beginners

TryR is another great place to start learning R.
About a month ago, I put together an R tutorial for my departmental colleagues and classmates here at the University of Pennsylvania. In addition to getting my colleagues started with R, I also wanted to make the information available to anyone else who wants to learn. The tutorial was based entirely on a live demonstration and working through some examples, so there are no slides. All of the materials can be found on Github here.

The tutorial package can be downloaded as compressed source code according to the README file. This includes the R script that you can run and work through, as well as an R notebook file that includes the R output so you can see what examples of result output. Finally it includes an example dataset as a comma separated value (csv) file, which I use to illustrate how to import data into R.

If you want to start learning to code with R, definitely check out these workshop materials. It took us about an hour and a half to get through, so it's very doable. If you have any questions, or want to suggest a topic for the next tutorial, let me know in the comments below.

No comments:

Post a Comment