Short introductory course for learning the basics of R, tailored for ADF&G fishery biologists.
This course does not assume that you have any prior R knowledge, so don't be intimidated!
Attendees will watch the instructor present the PowerPoint presentation. At the end of each section, students will either work through the scripts that were associated with that section or in a "learnr" tutorial. In the code
folder there are several groups of scripts. In general, these belong to one of three groups.
Tutorials: There are several "learnr" tutorials, each contained in their own folder.
Scripts: A stand-alone script that demonstrates PowerPoint concepts, and will either be reviewed together or independently.
Motivating Examples: Completed scripts showcasing several types of analyses, charts, and data types.
Code is numbered to be associated with each section in the PowerPoint, i.e., concepts covered in PowerPoint Section 2 "Basic Programming" correspond to code reviewed in Tutorial_2_Basics
and in the script 2_Basic_Programming.R
To run the learnr tutorials on your own computer you will need to paste the following code into R and then run it:
install.packages(c("learnr", "shiny", "tidyverse", "lubridate", "scales", "palmerpenguins", "patchwork"))
Then opened the desired tutorial script in RStudio and click "Run Document" above the script pane.
This course will be split over two days of just over 4 hours each day. Before each section we will take a small break.
9:00-10:00 - Welcome and Section 1: About R
10:00-11:00 - Section 2: Basic Programming
11:00-12:00 - Section 3: Working with Your Data
12:00-1:00 - Lunch Break
1:00-2:00 - Section 4: Basic Data Manipulation
2:00-2:15 - Review of material
9:00-10:30 - Section 5: Charts
10:30-11:30 - Section 6: Basic Analysis
11:30-12:00 - Section 7: Tidyverse
12:00-1:00 - Lunch Break
1:00-2:00 - Self-Directed Project
2:00-2:30 - Project Results and Concluding Thoughts
- Recognize basic codes / commands. Recall resources
- Know the how & why of what code does
- Use this knowledge in new situations to create a visualization
Be kind: all else is details. Remember, this includes being kind to YOU
We are teaching & learning this together. Teach each other
Every mistake is a lesson. Ask me or yourself why something didn’t work
Communicate when I’m going too fast. Let’s keep this a dialog