class: center, middle, inverse, title-slide # Lab 04 ## Merge Conflicts and Simpson’s Paradox ### Shawn Santo ### 02-07-20 --- ## Getting started Please sit with your teammates. 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 `lab04-[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. --- ## Points of emphasis - 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. - Carefully consider each object's name. - 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.