¶
Preamble¶
In this workshop, we will be learning a few techniques to achieve the following goals:
- Write fewer lines of code
- Scale analyses
- Understand how to put multiple concepts together
- Make code predictable and readable.
The topics we will cover here are:
1. Manipulating strings
2. Managing and manipulating relational data
3. Writing functions
4. Using iterations
5. Understanding data structures
Although the lessons are structured in a modular fashion, these techniques complement each other in order to help us achieve the goals above.
Pre-requisites¶
To fully engage with the material in this workshop, you will need:
-
An introductory knowledge of R
- Variable assignment
- Mathematical and Boolean operators
- Data modes
- Importing data
-
Some familiarity with the
tidyverse
dialect of R code as shown here:mutate()
andfilter()
group_by()
andsummarise()
%>%
-
- Understand the difference between
[
and[[
when subsetting a list - Understand what nestedness means in a list
- Understand the difference between