owned this note
owned this note
Published
Linked with GitHub
# R for Biologists Workshop
This document will contain relevant links, information, and allow us to quickly and collaboratively share code with good formatting.
Brady's Twitter: [@bradyajohnston](https://twitter.com/bradyajohnston)
#### **Zoom Info**
* Zoom link: https://uwa.zoom.us/j/94747101358?pwd=V0NqQ1dJaW1sU0J5ZVIyV0Rta0huQT09
* Zoom password: 546735
#### **Course outline and info:**
[Web outline here](https://plavskin.github.io/Intro_R_Course/)
[Download all files here:](https://github.com/plavskin/Intro_R_Course)
[Rstudio Cheat sheet](https://rstudio.com/resources/cheatsheets/)
[Markdown cheat sheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)
#### Anonymous Feedback form:
https://forms.gle/7uuEMs47SuK5Nsm56
#### Session recordings:
If any of these don't work, send me an email.
Session:
1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/XgsaIikbrBmIhoy), Password: 6eTQkyMH-qga
1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/S6U7mTIdMajHpba), Password: Vs7hmZ7qU2-Y
1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/0q99qErgvjlN6Ee), Password: Brp7CL+HLtRS
1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/eKaeJkVcnKJCajn), Password: xJpHoC!h3V2d
1. [Recording](https://cloudstor.aarnet.edu.au/plus/s/7APQ4iNzTE7VRP3), Password: GaFdz4!uznE2
2. [Recording](https://cloudstor.aarnet.edu.au/plus/s/BN3ZdibDsEgihcv), Password: Sf=6eALB6uMB
3. [Recording](https://cloudstor.aarnet.edu.au/plus/s/xDy2iJhGe9Blzf6), Password: zdZpyda8*ctg
4. [Recording](https://cloudstor.aarnet.edu.au/plus/s/RSSWu3iXqAqsMIt), Password: 7PfQkM2wU@SH
5. [Recording](https://cloudstor.aarnet.edu.au/plus/s/CgnZvsXXHDcdFkT): Password: -gmkneK4TnBU
### **Introductions:**
Use this space to introduce yourself! Just a brief bio about research you do, coding experience you might have etc.
Hello, I'm Soodeh
Hey guys, Heidar here
Hi I am Federica from Milan, Italy :)
Hi Brady, thanks for the workshop! Kalia
I am Paula (Pau VT), from Germany, but originally from Chile
Hello!
**Hello! My name is Brady, and I am from Perth, australia. It is nice to have you all here!**
Hello Brady
Hi everyone, this is Sam, I'm from Perth WA.
Hello all! I'm Callum and I'm from Perth Aus!
Hello, my name is Ayeisha and I am also from Perth, Australia.
Hello, My name is Khyati and am from India.
G'day, my name is James, currently in Perth.
Hello, my name is Alessio and I am from Lombardy, Italy
Hello! I'm Jacob - from Perth, Australia.
Hi I'am Julie Mallet, from France
Hi everyone, my name is Giada, I'm from Italy!
## Class 1 - R / Rstudio Installation
R version 4.0 has just been released! This is very exciting (for a number of nerdy reasons) but in this course we will be using R version 3.6.3 (you can use some version of 3.6.x) to keep things consistent with the materials.
#### Installing `R` and `Rstudio`
There is a great guide on how to download and install R if you haven't already, than can be found [here](https://plavskin.github.io/Intro_R_Course/Workshop_1.nb.html#downloading-installing-and-navigating-rstudio). If you get lost try following [this one](https://www.datacamp.com/community/tutorials/installing-R-windows-mac-ubuntu) instead.
Rstudio is not much use to you without R installed, and using R without Rstudio is a lot more effort than it is worth. Ensure that you have both installed, and that Rstudio boots up.
#### Try setting up your screen like this, in order to follow along.
![](https://i.imgur.com/P48LUXi.jpg)
Downloading the R-markdown document for the first session [here](https://www.dropbox.com/sh/etpexuvc4vpiiz9/AACtRwfd8iBDvHhq_p-CGKWza?dl=0).
## Class 2 - Variables, types and functions.
[Download second file here.](https://www.dropbox.com/s/003hdg5gj29sfnp/Workshop_2.Rmd?dl=0)
### Let's talk about variables and functions.
## Class 3 - Intro to Vectors
[Class 3 Files.](https://www.dropbox.com/s/gz7fh11heib933z/Workshop_3.Rmd?dl=0)
Posting of code:
## Class 4 - Logical Operations
[Link to files](https://www.dropbox.com/s/pt63nktr3hjuk7n/Workshop_4.Rmd?dl=0)
## Class 5 - Dataframes!
[Linke to files](https://www.dropbox.com/s/vzdf4fwwrgegkhw/Workshop_5.Rmd?dl=0)
[Link to iris files](https://www.dropbox.com/s/8t66gfyi60dc8zp/iris.csv?dl=0)
## Class 6 - Plotting your data with ggplot2.
If you haven't download the files [here](https://www.dropbox.com/s/vbqcvyv8s0x31qw/Workshop_6.Rmd?dl=0):
Let's start posting out plots.
## Class 7
If you have not downloaded files, download here:
[Here](https://www.dropbox.com/s/swukoel23ofei09/Workshop_7.Rmd?dl=0)
## Class 8: Programming with R | Part 1
Prograaming with R.
Files [here](https://www.dropbox.com/s/lzr2mr1sq8p1vla/Workshop_8.Rmd?dl=0)
## Class 9: Programming with R | Part 2
Files available [here](https://www.dropbox.com/s/cklocisi9exkuli/Workshop_9.Rmd?dl=0).
If you didn't save have success with making a function to make the plants grow, use the example one below:
```{R}
grow_plants <- function(df, dog, growth_amount, sd){
growth_heights = rnorm(n = 3, mean = growth_amount * dog, sd = sd)
new_df_values <- data.frame(
day = rep(dog, 3),
height = growth_heights,
plant.id = LETTERS[1:3]
)
output_df <- rbind(df, new_df_values)
return(output_df)
}
```