Hanover Stats Labs

This site is a repository of information related to statistics instruction at Hanover College. Here you will find resources regarding the use of R and RStudio, as well as details about our lab assignments.

This site provides resources for both instructors and students who want to learn how to analyze data with R and RStudio. We have built on the work of Project MOSAIC and tidyverse to offer a small and coherent set of instructions. Our emphasis has been on gradually building the student’s ability to analyze data with RStudio and to generate reports using RMarkdown.

Our intent has not been to introduce students to the R programming language as a whole. We instead focus on giving students the ability to perform basic statistical work within the R framework while avoiding the true complexity of learning how to code. After working through our materials, students will have become comfortable with the R environment in general, and will be ready for more advanced R work in the future.

New users: We recommend printing out the Basic Cheatsheet and working through the first few labs.

MoRsels
MoRsels are little tidbits of information about individual aspects of using R and R-studio. Use them as quick references for how to do things.
Workshops
Our Workshop material.
Labs
Our labs are a great place to start. They gradually introduce you to the various features of R and RStudio. These are the labs we use in our Applied Statistics courses.
Advanced Labs
These labs proceed to more advanced topics, including data manipulation, advanced graphing, and advanced linear modeling.
Cheatsheets

A Basic Cheatsheet for basic R and RStudio functionality. As you work through the various material, you may want to have a printed copy of the cheatsheet as well as having it open in a browser tab.

We are working on a second, more advanced, cheatsheet as well.

Login
Login instructions for those that do not need to follow our labs above. This page has brief information on how to log in to the Hanover College RStudio server. Must have Hanover College login credentials.
R Reference
Reference for the various commands we use can be found here. Use it as a reference for enhancing the command’s output if the default behavior is not quite what you wanted. We have purposefully restricted ourselves to a small subset of the R language, based on the work of Project MOSAIC.
RMarkdown

RMarkdown is used to generate reports, like this sample report which was produced from this source file.

Here is an R Markdown Cheatsheet that describes the markup syntax more.

Workshop Resources
This page contains useful resources related to the workshops we do on learning R, and might be more broadly useful to others.
Other Resources
Various resources with further links.
Installation
Instructions for how to set up RStudio and related packages on your own machines.