---
# System prepended metadata

title: 2021-11 <br> SWD1b Introduction to programming in R
tags: [' swd1b', teaching]

---

---
tags: teaching, swd1b
---
# 2021-11 <br> SWD1b Introduction to programming in R

Welcome to the hack pad for SWD1b course from Research Computing at the University of Leeds!

You can edit this document using [Markdown syntax](https://guides.github.com/features/mastering-markdown/).

# CAMERAS ON AND MICROPHONES OFF PLEASE!

It helps us to help you if we are **all in the room**

## Contents

1. [Links to resource](#Links-to-resources)
2. [Agenda Day](#Agenda-Day)
4. [What's your name and where do you come from?](#What’s-your-name-and-where-do-you-come-from?)


## Links to resources

- **RStudio Cloud** - https://rstudio.cloud 
- **Contact Research Computing** - https://bit.ly/arc-help
- **Course notes** - https://arctraining.github.io/swd1b-r/
- **Version control with git** - https://swcarpentry.github.io/git-novice/



## Agenda Day 1

| Time     | Agenda                                     |
| -------- | ------------------------------------------ |
| 1300     | Intro, using Rstudio.cloud, What is R?     |
| 1350     | Break                                      |
| 1400     | R basics, Project management in RStudio    |
| 1450     | Break                                      |
| 1500     | Finding help, Data Structures              |
| 1550     | Questions                                  |
| 1600     | Close                                      |

## Agenda Day 2

| Time     | Agenda                                          |
| -------- | ----------------------------------------------- |
| 1300     | Data structures (cont.), Data Types and coercion|
| 1350     | Break                                           |
| 1400     | Exploring data frames                           |
| 1450     | Break                                           |
| 1500     | Subsetting data                                 |
| 1550     | Questions                                       |
| 1600     | Close                                           |

## Agenda Day 3

| Time     | Agenda                                          |
| -------- | ----------------------------------------------- |
| 1300     | Subsetting data (cont.), Control flow           |
| 1350     | Break                                           |
| 1400     | Control flow (cont.), plotting with ggplot2     |
| 1450     | Break                                           |
| 1500     | Plotting with ggplot2 (cont.)                   |
| 1550     | Questions                                       |
| 1600     | Close                                           |

## Agenda Day 4

| Time     | Agenda                                          |
| -------- | ----------------------------------------------- |
| 1300     | Functions                                       |
| 1350     | Break                                           |
| 1400     | Dataframe manipulation with dplyr               |
| 1450     | Break                                           |
| 1500     | Tidyr and the Tidyverse                         |
| 1550     | Questions                                       |
| 1600     | Close                                           |



## What's your name and where do you come from?
- Edit the hackpad and add your name!
- Clifford Richardson, Civil Engineering, need R refresher.
- Md Zahid Hasan, I am a first year PGR at the Leeds Institute of Health Science. I will be exploring the different models of urban healthcare in Bangladesh. I am learning R for conducing statistical analysis and modeling related to my PhD.  
- *Ollie Clark*, **Research Software Engineer**. Background in databases and software engineering. Learning R to help support researchers.
- Nick Rhodes, Research Software Engineer. Mixed background in development and support. Like Ollie, Learning R to help support researchers.
- Zac Paling- school of biology
- Elizabeth Townsend, 2nd Year PhD student in School of Geography
- Sumitra, Postdoc in School of Biomedical Sciences
- Joe Cogan, first year PhD student (Molecular and cellular biology) 
- Yousef Alghamdi, PhD student, Learning R to analyze biological data.
- Seb Croft, PhD student, soft matter physics, learning r to analyse data
- Roza, PhD student in FBS, want to learn how to deal with large datasets easily and visualize data
- Majed, 2nd  year PhD, Mechnical Enginreering, soft robotics 
- Tarun Kakkar, Research fellow, LICAMM. I want to learn R for Data analysis of clinical data, I have background in material science
- Chieh Lin, postdoc researcher, Business School. Learning R to complement my use of Stata.
- Dominique Hirsz, School of Biology, learning R to analyse and visualise biological datasets
-Shirley Wang, PhD of Food Science and Nutrition. 
- Danielle Charles - FBS, School of Biomedical Sciences. Human biomechanist. I am refreshing R as i need a more flexible way to analyse data. 
- AMAL MUDAWI, DENTISTRY
- Chong Liu, School of Sociology and Social Policy. PhD researcher, researching sexuality education and social stratification in comtemporary China. I have my first degree in Computer Science, but now I am basically a qualitative social scientist.
## Getting the data

To get the gapminder dataset for todays course you'll need to use the following command in your RStudio cloud console:

```r=
download.file("https://raw.githubusercontent.com/swcarpentry/r-novice-gapminder/gh-pages/_episodes_rmd/data/gapminder_data.csv", 
              destfile = "data/gapminder_data.csv")
```

## Questions and Answers

Feel free to post any questions you have here or in the Zoom chat. I'll do my best to answer them inline.

**Increasing RStudio font size** 
> Tools> Global Options> Appearance > Editor Font Size
