Introduction to R
Announcements:
- Instructor: Mike McCann
- Location: 060 Life Sciences Building
- Time: Thursday January 22 & Friday January 23, 2015; 1:00 - 5:00 PM
- Target Audience: anyone who is relatively new to R, especially incoming Biometry (BEE 552) students. All others are welcome.
- Topics: data types (vectors, matrices, data frames, lists), sub-setting and data manipulations, sampling from distributions, basic and advanced plotting, loops, functions, etc.
Announcements:
- Bring your laptop with R and RStudio installed to class.
- Power outlets are limited, so charge your laptop ahead of time and bring your charger and a power strip / extension cord if you have one.
- Make sure your laptop can connect to Wolfienet (Wi-Fi).
- Please note the room change. We are now meeting in Room 060 in the Life Sciences basement. It's a slightly larger room, but we will still be very cozy!
Course Content
Day 1
I. Basics of R
- Slides
- Worksheet / answers
- Resources: R reference card, Useful R Commands, R Cheatsheet, Google's R Style Guide, Advanced R by Hadley Wickham, Hadley's R Style Guide
- Resources: Basic Graphs (Quick-R), R Base Graphics: An Idiot's Guide, R Base Graphics Plotting, Producing Simple Graphs with R, Basic Probability Distributions, Probability Distributions
- Worksheet / answers
- Data: climate01.csv, climate02.csv
Day 2
IV. For loops
- Worksheet / answers
- Resources: R For Loop, Paleocave's thoughts on for loops, For loops (and how to avoid them)
- Worksheet / answers
- Resources: Functions (Quick-R), Functions (Advanced R)
- Worksheet / answers
- Resources: ggplot2 help documentation, ggplot2 guide by Sharp Statistics, ggplot2 (book), ColorBrewer (Color Advice)
Additional Topics
Acknowledgments
Thanks to Ben Weinstein and Software Carpentry for their help building and compiling most of these materials.