Misk DSI
1
Prerequisites
2
Introduction
2.1
Learning Objectives
2.2
The Text Editor & R Syntax
2.3
The Assign Operator: Creating Objects
2.4
R Help Pages: Functions
2.5
Packages: Extending R’s Functionality
3
Importing Data
3.1
Functions & Packages for Importing Data
3.2
Saving a data frame to a file
4
Intro Case Study
4.1
Saving your Workspace
5
Functions
5.1
Learning Objectives
5.2
Introduction
5.3
Arithmetic Operators
5.4
What are Functions?
5.5
The
:
operator
5.6
Descriptive statistics
6
Objects
6.1
Take-home Messages
6.2
Homogeneous Data-types
6.2.1
Vectors
6.2.2
Matrices
6.2.3
Arrays
6.3
Heterogeneous Data-types
6.3.1
Lists
6.3.2
Data Frames
6.4
Merging Data Frames
6.4.1
Inner join
6.4.2
Outer join
6.4.3
Left join
6.4.4
Right join
6.4.5
Anti-join & Semi-join
6.5
Ordering functions
7
Logical Expressions
7.1
Learning Objectives
7.2
Relational Operators
7.3
Logical Operators
7.4
Using logical expressions on different atomic vector types
7.5
Summary of Operators
7.6
Exercises for Logical Expressions
7.7
The Floating Point Trap
8
2.1.4 Indexing
8.1
Learning Objectives
8.2
Indexing vectors (1D)
8.3
Indexing Dataframes (2D)
8.4
Exercises for Indexing
9
Exercises
9.1
Our Dataset
9.2
Exercises I
9.3
Exercises II
10
Reproducible Research
10.1
Learning Objectives
10.2
Scripting
10.3
R Markdown and the
knitr
Package
10.4
R Markdown
10.5
The YAML Header
10.6
Non-code Commentary
10.7
Code Chunks
10.8
In-line Code
10.9
Tables
10.10
The knitr package
11
Factor Variables
11.1
The Structure of Factors
11.2
Factors and defining Linear Models
11.3
Factors and Importing Data
11.4
Converting from Factors to other Classes
11.5
Ordered Factors
11.6
Adding & Removing Factors Levels
11.7
Relabeling Factors Levels
12
2.1.5 Tidy data
12.1
Learning Objectives
12.2
Example
12.3
The pipe operator - %>%
12.4
Tidy Data with the
tidyr
Package
12.5
Pivot to longer
12.6
Pivot to Wider
13
2.1.6 Tidyverse
13.1
Learning Objectives
13.2
Split-Apply-Combine with the dplyr Package
13.3
The Five Verbs
13.3.1
filter()
13.3.2
arrange()
13.3.3
select()
13.3.4
mutate() & summarise()
Data Science Immersive
Introduction to R
Introduction to R
Misk Academy
Chapter 1
Prerequisites
Install
R
and
RStudio
.