class: center, middle, inverse, title-slide # Lab 05 ## MLB Wins ### Shawn Santo ### 02-21-20 --- ## Getting started 1. Go to our GitHub course organization page: https://github.com/sta199-sp20-001 2. Once you are logged in to GitHub you should see a repo named `lab05-[team_name]`. This is a private team repository that has been created for you and your team members. 3. Each person on the team should now clone the repository into RStudio Cloud. 4. Configure git. 5. Cache your password. <br/><br/> **Lab 05 is due Friday, Feb 28 at 11:59pm** --- ## Points of emphasis - In addition to function `lm()`, your code should only contain functions from the loaded R packages. ```r library(tidyverse) library(ggpol) library(broom) ``` - Keep a single space around all operators and after commas. - Break lines after the `+` operator when adding `ggplot2` layers and after the ` %>% ` operator when using a sequence of `dplyr` functions. - Keep narrative and code within 80 characters. Set the margin by going to `Tools -> Global Options -> Code -> Display -> Check "Show Margin"` --- ## Helpful keyboard shortcuts | PC | Mac | Description | |--------------------|--------------------|-----------------------------------| | `Alt + -` | `Option + -` | Insert assignment operator | | `Ctrl + Shift + M` | `Cmd + Shift + M` | Insert pipe operator | | `Ctrl + Alt + I` | `Cmd + Option + I` | Insert R code chunk | | `Ctrl + Shift + A` | `Cmd + Shift + A` | Reformat selection (nice spacing) | --- ## Submission - One submission per group. - Make sure you select all your group members in Gradescope upon submission. - Make sure your team name and all team member names are included in the YAML of your Rmd file.