Overview and Getting Started
About This Primer
This primer comprises a sequence of instructional videos and R notebooks covering:
- How to install R and several integrated development environments on various computer systems,
- An introductory guide to the R language.
The table of contents below provides links to open the notebooks in Google Colab (from which they can also be downloaded), and to open the videos in the TAMIDS YouTube channel.
This primer was created by Matt Hielsberg for the Texas A&M Institute of Data Science
Quick Start Guide for Learning R Without Any Software Installation
- Obtain a Google account if you don’t already have one; this is needed to run Google Colab. When opening each notebook, you may need to agree to run the content when prompted by Colab.
- Watch the background video and open the accompanying notebook in Colab (as listed also in Section 1.1 below) for some basic information on the R language and a list of further resources.
- Skip down below to the R Language Guide and start at Chapter 4
Learning Objectives For This R Primer
After completing this primer you should be able to do the following
- Create and manage R projects using the R console, RStudio, RStudio Cloud, Google Colab, and Jupyter Notebook
- Use the built-in help system to find details on functions, packages and data sets
- Write and evaluate expressions using variable names
- Understand name resolution and conflicts
- Use basic data structures including vectors, lists, factors and data frames, among others.
- Understand and use various control flow mechanisms, and how to replace looping structures using apply
- Write functions, understand argument lists, use named and unnamed arguments including default values
- Understand and utilize short-circuit and lazy evaluation
- Find, install and load packages from CRAN
- Read/Write basic custom data files
- Visualize data using ggplot and other plotting tools
R Systems and Installation Guide
Chapter 1: Background and Installation
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
1.1 | Background | Open | Video (4:01) |
1.2.1 | Installation: Introduction | Open | Video (3:19) |
1.2.2 | Installation: Google Collaboratory | Video (3:23) | |
1.2.3 | Installation: RStudio Cloud | Video (2:30) | |
1.2.4 | Installation: R MacOS | Video (1:59) | |
1.2.4 | Installation: R Ubuntu | Video (3:19) | |
1.2.4 | Installation: R Windows 10 | Video (1:59) | |
1.2.5 | Installation: Jupyter MacOS | Video (5:09) | |
1.2.5 | Installation: Jupyter Ubuntu | Video (4:12) | |
1.2.5 | Installation: Jupyter Windows 10 | Video (2:15) | |
1.2.6 | Installation: IRKernel MacOS | Video (4:02) | |
1.2.6 | Installation: IRKernel Ubuntu | Video (2:04) | |
1.2.6 | Installation: IRKernel Windows 10 | Video (2:02) | |
1.2.7 | Installation: Anaconda MacOS | Video (2:07) | |
1.2.7 | Installation: Anaconda Ubuntu | Video (3:07) | |
1.2.7 | Installation: Anaconda Windows 10 | Video (2:04) | |
1.2.8 | Installation: RStudio MacOS | Video (1:47) | |
1.2.8 | Installation: RStudio Ubuntu | Video (2:28) | |
1.2.8 | Installation: RStudio Windows 10 | Video (1:30) |
Chapter 2: Getting Started with R Interpreter
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
2.1 | The R Interpreter | Open | Video 1 (4:02) |
2.2 | Getting Started With Scripts | Open | Video 1 (4:13) |
2.3 | Guidelines/Good Practices | Open | Video 1 (5:10) |
Chapter 3: Getting Started with Integrated Development Environments (IDEs)
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
3.1 | Jupyter Notebook | Open | Video 1 (10:10) |
3.2 | Google Colab | Open | Video 1 (7:31); Video 2 (5:53) |
3.3 | RStudio Desktop | Open | Video 1 (14:02) |
R Language Guide
Chapter 4: Introduction
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
4.1 | Getting Help in R | Open | Video 1 (4:02); Video 2 (2:53) |
4.2 | Calculator | Open | Video 1 (4:13); Video 2 (2:30) |
4.3 | Variables, Assignments & Statements | Open | Video 1 (5:10); Video 2 (3:27); Video 3 (2:21); Video 4 (5:25) |
Chapter 5: Data Structures
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
5.1 | Vectors, Sequences, and Indexing | Open | Video 1 (9:45); Video 2 (6:50); Video 3 (11:32) |
5.2 | Character Vectors and Strings | Open | Video 1 (9:03) |
5.3 | Lists | Open | Video 1 (6:28) |
5.4 | Matrices | Open | Video 1 (9:19); Video 2 (8:59) |
5.5 | Factors | Open | Video 1 (6:04) |
5.6 | Data Frames | Open | Video 1 (9:23); Video 2 (5:45); Video 3 (7:29) |
Chapter 6: Control Flow
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
6.1 | Control Flow | Open | Video 1 (9:43); Video 2 (12:30) |
6.2 | Functions | Open | Video 1 (13:15); Video 2 (8:41); Video 3 (9:37) |
6.3 | Apply | Open | Video 1 (16:44) |
Chapter 7: Packages
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
7.1 | Packages | Open | Video 1 (14:09); |
Chapter 8: Data
Section | Topic | Notebook / Colab | Videos |
---|---|---|---|
8.1 | Data | Open | Video 1 (13:40); Video 2 (13:47); Video 3 (10:27) |