Learning how to code is similar to learning any new language. You have to learn some of the basic grammar and vocabulary, but you also need lots of practice. {learnr} is a package used to create interactive tutorials to give you immediate, automated, interactive feedback to help you learn more effectively and at your own pace.
To use the interactive Intro to R for Biology learnr tutorials you need access to R and RStudio. Check with your instructor to see if you will be using a cloud-based version of RStudio (RStudio Server, RStudio Cloud). Even if you will be using a cloud-based version, it is good to have a backup of the software on your computer. If you need or want to install R and RStudio on your computer, you can follow these instructions - Installing R and RStudio
If you already have R and RStudio installed on your computer, then please update them if you do not have the latest versions. You can use the general instructions for how to update here (just note to use the latest versions of the programs and packages rather than the version listed here) - I have R Installed
Before you can use this series of tutorials, you must install some packages in R. See the instructions for package installation from Modern Dive or
Install or update the following packages by copying the code below, pasting in the RStudio console, then clicking enter:
install.packages("tidyverse")
install.packages("ggfortify")
install.packages("ggbeeswarm")
install.packages("here")
install.packages("learnr")
install.packages("devtools")
devtools::install_github('rstudio/htmltools')
devtools::install_github("rstudio-education/gradethis", force = TRUE)
Here is a list of the tutorials available so far:
- Basics
- Why looking at data visually can be useful
- how to install and load packages
- Understand what a function is and how to use a function's help page
- Use the
head()
function to look at data frames
- Getting Data into R
- Learn about objects and data types in R
- Use several functions to help investigate the structure of a data frame
- Understand what tidy data is
- Practice importing a csv file