Instructors: Tim Dennis & Reid Otsuji
Dates: 10/20 & 11/4
Time: 10-noon
Location: BLB Classroom 4
Sponsoring Library Programs: Research & Reference Advisory – Data Services & Research Data Curation

This is an introduction to R designed for participants with no programming experience. They start with some basic information about R syntax, the RStudio interface, and move through how to import CSV files, the structure of data.frame, how to deal with factors, how to add/remove rows and columns, and finish with how to calculate summary statistics for each level and a very brief introduction to plotting.

NOTE: This course is largely adapted from the Data Carpentry’s R for Ecology lessons http://www.datacarpentry.org/.

Lessons:

  • Intro to R
  • Creating functions
  • Working with data

Resources

  • RStudio Keyboard Shortcuts
    • Insert assignment operator: windows (Alt+-); mac(Option+-)
    • Insert pipe operator: win(Ctrl+Shift+M); mac(Alt+Shift+M)

Setup

R

R is a programming language that is especially powerful for data exploration, visualization, and statistical analysis. To interact with R, we use RStudio.

Windows

Install R by downloading and running this .exe file from CRAN. Also, please install the RStudio IDE.

Mac OS X

Install R by downloading and running this .pkg file from CRAN. Also, please install the RStudio IDE.

Linux

You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run sudo apt-get install r-base and for Fedora run sudo yum install R).Also, please install the RStudio IDE.