A series of introductory R videos.
I’ve uploaded 20+ R tutorials to YouTube for a new undergraduate course in Ecology and Evolutionary Biology at CU developed by Andrew Martin and Brett Melbourne, which in jocular anticipation was named IQUIT: an introduction to quantitative inference and thinking.
We made the videos to address the most common R programming problems that arose for students in the first iteration of the course. These short tutorials may be of use elsewhere:
c()class, length, strsqrt, log, exproundCreating special vectors: sequences and repetition
:seq (hit args)rep (also note argument structure)Relational operators and logical data types
==, !=, >, <, >=, <=TRUE and FALSE2-d data structures: matrices and data frames
Intro to indexing: matrices and vectors
[strData frame subsetting and indexing
df[c("column names")], df$column, df[, 1]R style & other secrets to happiness
ls, rmread.csvNAis.naVisualization part 1: intro to plot()
plotxlab, ylab, colVisualization part 2: other types of plots
Visualization part 3: adding data to plots
pointslines, and segments (also abline)Visualization part 4: annotation and legends
textVisualization part 5: graphical parameters
col, cex, pch (see ?points for pch options)col, lwd, ltyfor loopmean, sd, var, medianRandomization & sampling distributions
sample and repDebugging R code 1: letting R find your data
Debugging R code 2: unreported errors
n on the uncertainty in a sample meanConveying uncertainty with confidence intervals while not obscuring the data
segments functionsample or some other scheme, then iteratively simulate differences in means with CIs
Figure 1: Toby Hudson [CC BY-SA 2.5 au (https://creativecommons.org/licenses/by-sa/2.5/au/deed.en)], from Wikimedia Commons
If you see mistakes or want to suggest changes, please create an issue on the source repository.
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. Source code is available at https://github.com/mbjoseph/mbjoseph.github.io, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".