Skip to content

Short introductory course for learning the basics of R, tailored for fishery biologists.

License

Notifications You must be signed in to change notification settings

justinpriest/R_Intro_AFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFS Alaska Workshop 2022: Introduction to R for Fishery Researchers

Short introductory course for learning the basics of R, tailored for AFS fishery biologists.

Course Approach

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.

To open the code, ALWAYS start by double clicking the R_Intro_AFS.Rproj file. Next, open the files as normal. This will ensure that the files run properly. Don't worry if this sounds a little confusing, we'll cover all this in class!

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.

Agenda

This course will be split over two days of about 6.5 hours each day. Before each section we will take a small break.

Day 1 (Friday February 25)

9:00-9:30 - Welcome
9:30-11:00 - Section 1: About R
11:00-12:00 - Section 2: Basic Programming
12:00-1:30 - Lunch Break
1:30-3:00 - Section 3: Working with Your Data
3:00-4:30 - Section 4: Basic Data Manipulation
4:30-5:00 - Review of Material

Day 2 (Monday February 28)

09:00-09:30 - Welcome and Review
09:30-12:00 - Section 5: Charts
12:00-13:30 - Lunch Break
13:30-14:30 - Section 6: Basic Analysis & Section 7: Tidyverse
14:30-16:30 - Section 8: Independent Project
16:30-17:00 - Review of Projects & Course

Course Outcomes

  • Recognize basic codes / commands
  • Know the how & why of what code does
  • Use this knowledge in new situations to create a visualization
  • Recall resources to use after the class

Expected Behavior

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

License

All code (project source code, R files, and RMD files) is licensed under the GNU GPL 3.0 license. All other files and content of this project (e.g., teaching presentations and .CSV data files) are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (CC BY-NC 4.0).
For exceptions and permissions to teach from these materials, please contact the creators and license holder(s).

About

Short introductory course for learning the basics of R, tailored for fishery biologists.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages