-
Notifications
You must be signed in to change notification settings - Fork 62
Introduction to R for Data Analysis
The scripting language R is considered one of the most powerful languages for quantitative analysis, statistics, and graphics. This workshop will help you get started using R to analyze your datasets and create graphs for visualization. You'll do hands-on exercises to demystify data analysis using R. This workshop is designed for those who have no background whatsoever in programming/R.
Part 1: The R language and RStudio
- What is R and why should you use it?
- The RStudio interface
- Troubleshooting error messages
- Variables
- Types & data structures
- Math and logic operations
- Functions and packages
- Reading data into R
Part 2: Hands-on Data Analysis in R
- Filtering and reformatting data
- Exploring data (Basic summaries such as mean, median, etc.)
- Plotting data
- R markdown report generation
No background in statistics or computing is necessary. Bring your laptop with RStudio and R installed.
This is an introductory workshop in the R Scripting series. No prior experience with programming or R/RStudio is required for this course. No prerequisites. Absolute beginners are especially welcome!
Click here to download the workshop materials or click here to access individual files.
Before the workshop, follow the instructions in sections 1.1 and 1.2 on this page to install R and RStudio on your computer.
You can access these materials remotely at any time and go through them at your own pace. Here's how:
-
Download the materials.
-
Inside the downloaded folder is a PDF slide deck that describes some of the essential terms and concepts. Please go through these and do the exercises using the .R and .Rmd files, refering back to the slides at the end of each exercise. Note that direct copying from slides to RStudio may result in errors because of formatting differences.
-
UCSF library provides an excellent Intro to R module in its Collaborative Learning Environment. It has an instructional video to get started with RStudio, descriptive text, and exercises for practice. All of it is available in a user-friendly online environment. We highly recommend checking this out!
-
Software carpentry provides well-organized content to get started with R. See here. Absolute beginners may want to focus on modules 1-11 and go through them in two or three sessions.
-
A searchable list of RStudio webinars and conference talks
-
Free online books:
Beginner:
Hands-on programming with R
Intro to R
Intermediate:
R for Data Science
ggplot2: elegant graphics for data analysis
R Markdown: The Definitive Guide
Advanced:
Advanced R