R Camp
Day 1
Morning | 9AM-Noon
Blast off!
- Introductions
- Power on your droid
- Install and update R
- Start a new R project
- Create an R script
- Tour RStudio
- Create, copy, change, and remove data
- Make a data tables / data frames
- Add new R packages
- Read data
readr
for text filesreadxl
for Excel files
- Get visual with
ggplot2
- Plot the data!
- Check for outliers
Packages: readr
, readxl
, ggplot2
Afternoon | 1PM-4:00pm
Explore the data, answer data questions
- Explore data
- Column names, rows, observations, value types
- Missing values
- Mean, max, min, quantile
- Your data toolbox:
dplyr
- Arrange, sort, and filter data
- Comparing data:
>
,==
,%in%
- Adding and calculating new columns
- Unit conversions
- Save files
- Make ggplot sandwiches
Packages: dplyr
Day 2
Morning | 9AM-Noon
Questions and Review
- Join tables
left_join
- Summarize data
- Summary functions: mean, median, max, min, quantile
- Summarize by group or category
- By location: city, county, ZIP
- Exercise: Read data from Excel
Packages: dplyr
Afternoon | 1PM-4:00pm
Star Wars - Guess Who
- Calculate new columns based on
if
condition- If
age > 17
then “Eligible to vote”
- If
- Plot like a Jedi!
- Scatter plots and boxplots
- Add titles, colors, and labels
- Reference lines
- Themes
- Save charts to different formats
- Your turn - Practice what you’ve learned
Day 3
Morning | 9AM-Noon
Questions and Review
- Intro to Maps
- Coordinates
- Interactive maps
- Working with Dates
- Time zones
- Time series plots
- Join GitHub
- Share your data, code, and plots
Packages: sf
, leaflet
, lubridate
Afternoon | 1PM-4:00pm
Language learning: Reading code
- Use the pipe
%>%
to chain functions together for less typing - Connect to databases
- ODBC
keyring
: Keeping your passwords secret
- Choose your own adventure!
- Clean the data
- Create summary tables
- Compare years and sites
- Charts & maps
Packages: DBI
, RODBC
, keyring
🐈🐈 Concatulations!! 🐱🐱
Celebrations, accolades and certificates