This is the landing page for Introduction to R (MATH 130) class offered at California State University, Chico.

Target Audience

Anyone who wants to do their own data analysis! This is a primer to get the complete novice up and running with the basic knowledge of how to use the statistical programming language R for data analysis. Topics include: R programming basics, importing data, properties of tidy data, visualizing data, reproducible research with Markdown and basic data wrangling. Designed to get you up and running with basic knowledge of R and Markdown ASAP. This course is designed as a pre-requisite for most upper division Statistics, and all Data Science courses which use R heavily.

See the syllabus for details about the current class offerings.

Announcements (Fall 19)

This site is currently being updated for Fall 19.


Last Updated: 07/18/2019

Click each weekly header below to expand and see the materials for that week.

Week 1: Getting started with R and R Studio

πŸ“ Prepare:

  • Follow the [lec02] notes to install the necessary programs.

πŸ“š Notes:

✏️ Assignments:

  • Download the [Assignment 1] file. Save this in your Math 130 folder. You will write your answers directly in this file.
    • Submit the .RMD file for this assignment as instructed by the due date.

Week 2: Working with data in R

πŸ“ Prepare:

  • Right click each link and save the following data sets into the data subfolder in your MATH130 folder.

πŸ›‘ DO NOT RENAME ANYTHING If you download multiple copies of the data, do not keep the versions that have a (1) or some number in the name. Do not leave these files in your downloads folder.

πŸ“š Notes:

✏️ Assignment [HW 2].

Week 3: Factors and Making pretty pictures to win friends and influence people.

πŸ“ Prepare:

  • Install the nycflights13 package. This data set is on all flights out of the three major airports in NYC from 2013. There are multiple data sets contained within this package that are used in the homework.

πŸ“š Notes:

✏️ Assignment [HW 3].

Week 4: Better data management! Better plots!

πŸ“š Notes:

✏️ Assignment [HW 4].

Week 5: Putting it all together: Exploratory Project

Now it’s time to put your new 1337 skillz to the test! You will conduct an exploratory data analysis project.

Previous class projects can be seen [here].

✏️ Exploratory Data Analysis Project - With Peer Review [HTML] [PDF].

Creative Commons License
This content was developed by Robin Donatello and is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.