Courses
sowiso logo Beginner's Guide to R

Open guide Beginner's Guide to R offered KdVI and SMASH

Authors: André Heck, Zilva van Rossum, Karen Villari

Full access via UvAnetID

Available languages: 
nlen
Course content
Introduction
THEORY
T
1.
Why learn R?
THEORY
T
2.
Why this guide?
Setting up R and RStudio
THEORY
T
1.
Installing R and RStudio
THEORY
T
2.
Keeping your R environment up-to-date
THEORY
T
3.
Recommended set-up
THEORY
T
4.
Why installing two parts?
Getting familiar with the working environment
THEORY
T
1.
Where to find R and Rstudio on your computer?
THEORY
T
2.
RStudio panels
THEORY
T
3.
Creating and saving R scripts
THEORY
T
4.
Writing and running an R script
THEORY
T
5.
Working with working directories
Basic skills in R
Your first calculations with R
THEORY
T
1.
Introduction
THEORY
T
2.
Using R as a calculator
THEORY
T
3.
Creating and working with variables
THEORY
T
4.
Data types
Working with data structures
THEORY
T
1.
Vector
THEORY
T
2.
Matrix
THEORY
T
3.
Table
THEORY
T
4.
Data frame
THEORY
T
5.
Factor
THEORY
T
6.
Array
THEORY
T
7.
List
Getting data into and out of R
THEORY
T
1.
Data import and export: data from the keyboard or the R Wizard
THEORY
T
2.
Importing data from a delimited text file
THEORY
T
3.
Importing data from an Excel file
THEORY
T
4.
Importing data from a website
THEORY
T
5.
Dealing with missing values (NAs) during and after data import
THEORY
T
6.
Combining and cleaning data
THEORY
T
7.
Long versus wide format
Basic graphics
THEORY
T
1.
General information about graphics in R
THEORY
T
2.
The basic plot function and graphical options
THEORY
T
3.
Combining plots
THEORY
T
4.
Bar graph
THEORY
T
5.
Histogram
THEORY
T
6.
Box-and-whisker diagram
THEORY
T
7.
Scatter plot and strip chart
THEORY
T
8.
Line graph
THEORY
T
9.
Quantile-Quantile plot
THEORY
T
10.
Changing margins and size of figures and saving images
THEORY
T
11.
Summary of high-level plotting functions
THEORY
T
12.
Summary of arguments to high-level plotting functions
THEORY
T
13.
Summary of options to change features of a figure
THEORY
T
14.
Summary of low-level plotting functions
THEORY
T
15.
Beyond basic graphics
Working with functions
THEORY
T
1.
Why use functions, anyway?
THEORY
T
2.
What is a function?
THEORY
T
3.
Commonly used functions for numeric vectors
THEORY
T
4.
Combinatorial functions
THEORY
T
5.
Function shortlist
Installation, activation and use of R packages
THEORY
T
1.
Installing and activating packages within RStudio
THEORY
T
2.
Using something from a package without activating the whole package
THEORY
T
3.
Installing packages from Github
Getting help
THEORY
T
1.
Help available inside R and RStudio
THEORY
T
2.
Google information or ask ChatGPT
THEORY
T
3.
Ask a SMASH tutor!
THEORY
T
4.
Troubleshooting error messages
Basic programming
Introduction
THEORY
T
1.
Introduction
THEORY
T
2.
Applying functions on data structures
Control structures
THEORY
T
1.
Conditional instruction
THEORY
T
2.
Logical expressions
THEORY
T
3.
Conditional repetition
THEORY
T
4.
Restricted repetition
Defining functions
THEORY
T
1.
Why use functions, anyway?
THEORY
T
2.
The standard form of a function definition
THEORY
T
3.
Multiple returns and returned values
THEORY
T
4.
Default values for arguments of a function
Unlock full access  unlock

Open guide Beginner's Guide to R offered KdVI and SMASH

Authors: André Heck, Zilva van Rossum, Karen Villari

Full access via UvAnetID