URL to this page: https://hackmd.io/@k8hertweck/introR
Sign in to each class meeting here
Have you installed R and RStudio to the latest versions? Have you also installed tidyverse? See our Software instructions for links!
This page is for easy access to links we'll use during class. You don't need to do anything with this information until directed by your instructor.
If you have feedback about this course, please comment here
Complete class notes for all here.
Class 1: introduction to R syntax and RStudio
Class 2: Working with data frames
- Complete class notes
- Tidy data chapter from "R for Data Science"
- URL for direct download into R from GitHub: https://raw.githubusercontent.com/fredhutchio/R_intro/master/extra/clinical.csv
- Other example data files:
- Working on categorical data in R without losing your mind
- If you don't want to scroll to the right in your script (source window) to see your code, wrap the text by:
- Going to the Tools menu, then selecting Global Options (this changes the setting for all your projects)
- Select the Code tab on the left
- Check the box for "Soft wrap R source files", then click OK
- Class 2 exercises
Class 3: Data manipulation with dplyr
- Complete class notes
- If R says your data file does not exist, you have probably not opened your project:
- save your script in your project directory
- go to File -> Open Project
- navigate to the directory containing your project and click open
- the path (location in your computer) at the top of the console (bottom left hand panel) should now be the location of your project directory
- Tidyverse website
- dplyr cheetsheet
- Class 3 exercises
Class 4: Data visualization
- Complete class notes
- link to smoke_complete: https://raw.githubusercontent.com/fredhutchio/R_intro/master/extra/smoke_complete.csv
-
- link to birth_reduced: https://raw.githubusercontent.com/fredhutchio/R_intro/master/extra/birth_reduced.csv
- ggplot documentation
- ggplot cheatsheet
- ggplot colors
- viridis color palettes
- legends
- Class 4 exercises
- Please complete the post-class survey available through Hutch Learning, and/or add feedback about additional courses you would like using this form
Resources for continued learning
- Learn about other courses through fredhutch.io here. Intermediate R courses include the following:
- Intermediate R: Machine Learning (in development)
- Intermediate R: Data Visualization (in development)
- Intermediate R: Programming (based on these lessons from Software Carpentry)
- The Fred Hutch Bioinformatics and Data Science Cooperative, or Coop, hosts many community meetings and office hours about data science. Learn more information about these groups here
- Join the Coop Community Slack to talk about data science with other Hutch researchers!
- The Fred Hutch Biomedical Data Science Wiki is written by Hutch researchers and staff, and is a great place to find information about data management, bioinformatics, computing, and more.