Code
install.packages("babynames")
Nicholas Schwab
April 4, 2025
Today: Bonus office hour at 2:30-3:30.
No class next Wednesday April 2, finish up your projects.
Thursday Presentation of Major
Short kable()
demo
Project 1 grades are up and current. Please let me know if you cannot see grades on moodle.
Project 2 groups on Moodle
Monday and Wednesday after break are dedicated project 2 days
More on git work flow. (Issues)
Due: Friday: April 4th.
Project 1 notes
We’ll do Problems Chapter 6: 5 a-c, in class today. Chapter 5: 3,4
Quiz 2 will open in Wednesday and be due the Friday after break.
Exploration: How to join tables in R?
These data are from dplyr
band_members
band_band_instruments
Section 1: The difference between %in%
and ==
(Section 1 is one day below)
Discuss the difference between %in%
and ==
(Section 1 is one day below)
(Section 1 is one day below)
Running chunk tips
Running all the above
(Section 1 is on day 12)
Push all files to github.
grader’s notes in grade.qmd.
Last day to work on Project 1 in class, due in a week.
(Section 1 is on day 10)
Quiz 1 due tonight (both sections).
February 27th, 4:15-5:15pm, in the SAL
Interested in teaching yourself some GIS or building on your existing GIS skills? This workshop will walk participants through various tutorials, online short courses, and major data sources, enabling you to find the resources you need. Participants will also create a map in ArcGIS Online from a Map in a Minute tutorial.
March 6th, 4:15-5:15pm, in the SAL
Flourish is a web-based tool for mapping and data visualization. Using data about contemporary politics, learn how to bring in data, customize how it is displayed, and export it to Canva.
March 13th, 4:15-5:15pm, in the SAL
Learn how to create digital maps from paper ones through a process called georeferencing. Participants will explore historic maps of Massachusetts in Atlascope and gain practice georeferencing historic maps of Northampton using the AllMaps platform.
You might realize you are sharing an API key. Consider what that means.
Consider code layout.
Remember to comment your code.
Follow tidyverse style guide.
Practice a pull request today.
Make your graph legible to the lay person (title, labels, source, captions, etc).
Intro to paste()
(Section 1 is still on day 10)
We’ll practice with git in our projects.
See moodle for project groups.
Color Brewer site
Some time to finish up lab 2.
Quiz 1 is open. It is due in two Mondays.
5 minutes about colors via the cheat sheet.
This lab is due Wednesday at Midnight.
We will discuss colors on Monday when you get to them in ex 6:
You can reread this section if you forget what sequential,diverging,qualitative mean.
Or check out the colors examples on the cheat sheet.
Intuitive Color Examples
Help us help you: take screenshots of your screen and post them to Slack.
macOS: Command+Shift+3 to take shot of whole screen, Command+Shift+4 to take subportion
Windows: Shift-Windows Key-S and Snip & Sketch
Linux: Print screen
Chromebook: Shift + Ctrl + Show windows
Exploratory Data analysis and How R builds a graph.
If time:
Reflect on the functions we made, taking note of style.
Download this function practice.
Solutions will be posted later in the class.
Datafest is April 4-6 at UMass
Check lab 1 is successfully submitted on git.
Intro to functions via first_map.qmd (see maps folder in lab 1)
Pushing, commiting and pulling from git
Strings and Vectors
Libraries, functions, arguments and parameters
Introduction to the pipe
Getting data into R
If time: Anonymous functions
Where are we going?
Understand File Structure
Section 1 - about me
Section 2 - variable types
Problems 1-4 in pairs
Problem 5 together
Problems 6-9 in pairs
Try without hints, then hints, finally solutions.
Why do we do use git? Collaboration
Sign up for github here, if you don’t already have an account. We will very carefully link your github account to our github classroom account.
git vs github
Optional Lab, to familiarize yourself with git: Github Fundamentals Lab 0
Happy Git and the UseR is a helpful text.
You are only installing git today. There are other files, Ignore the other files until later
Link github account to github classroom - sign into github
prereq -> You need to have a github account
Click here for lab 1. This is due in one week.
very carefully find your name in the roster and click it.
you should see todays lab in what is called a repository.
My office and group study room.