Type to search
A Gentle Introduction to R
Overview
1
Getting Started
1.1
Installing RStudio
2
Basic Syntax
2.1
Functions
2.2
Variables
2.3
Console pane tricks
3
R-Scripts
4
Vectors
4.1
Numeric vectors
4.2
Logical vectors
4.3
Character Vectors
4.4
Factors
4.5
Missing values and such
4.6
Sorting, Shuffling and Sampling Vectors
5
Matrices
5.1
Creating matrices
5.2
Accessing Elements
5.3
Matrix Arithmetics
6
Data Frames
6.1
Creating data frames
6.2
Accessing data frames
6.3
Manipulating data frames
6.4
Data challenge: African elephants
7
Lists
7.1
Subsetting a list
7.2
Nested elements of a list
7.3
Lists as return type
8
Conditionals and Loops
8.1
Conditionals
8.2
Loops
9
Basic Plotting
9.1
Multiple Data sets
9.2
Multiple panels
9.3
Data challenge: Out of this world
10
Probability Distributions
10.1
Plotting empirical distribution
10.2
Data challenge: Working hours
11
Import & Export
11.1
Exporting and Importing Data Frames
11.2
Listing Existing Files
11.3
Exporting Graphics
11.4
RStudio Workspace
12
Packages
13
Writing Functions
13.1
Input to functions
13.2
Checking values
13.3
Return values
13.4
Environment
14
Speed: Thinking in Vectors
14.1
Apply
14.2
Functional Programming
15
S3 Classes
15.1
The class attribute
15.2
Generic functions
15.3
Writing S3 classes
15.4
Multiple classes
15.5
Constructors
16
Bonus chapter: tidyverse
16.1
dplyr functions for data manipulation
17
Bonus chapter: ggplot2
18
Solutions to Exercises
References
Prepared by the Wegmann Lab
Facebook
Twitter
LinkedIn
Weibo
Instapaper
A
A
Serif
Sans
White
Sepia
Night
Runifr - A gentle Introduction to R
References