This lesson is in the early stages of development (Alpha version)

Introduction to R

For guidelines on how to develop curriculum content, please visit The Carpentries Curriculum Development Handbook.

This lesson shows how to use The Carpentries lesson template. The materials below assume familiarity with tools such as GitHub, Markdown, and Jekyll. For more guidance, please visit the Technological introductions section of The Carpentries Curriculum Development Handbook.

For guidelines on how to help improve our lessons and this template, please see the contribution guidelines; for guidelines on how to set up your machine to preview changes locally, please see the setup instructions.

Prerequisites

These lessons assume no prior knowledge of the skills or tools, but working through this lesson requires working copies of R and RStudio.

Schedule

Setup Download files required for the lesson
00:00 1. Before we Start What is R and why learn it?
How to find your way around RStudio?
How to interact with R?
How to install packages?
00:40 2. Introduction to R What is an object?
What is a function and how can we pass arguments to functions?
How can values be initially assigned to variables of different data types?
How can a vector be created What are the available data types?
How can subsets be extracted from vectors?
How does R treat missing values?
How can we deal with missing values in R?
02:00 3. Starting with Data What is a data.frame?
How can I read a complete csv file into R?
How can I get basic summary information about my dataset?
How can I change the way R treats strings in my dataset?
Why would I want strings to be treated differently?
How are dates represented in R and how can I change the format?
03:20 4. Data cleaning & transformation with dplyr How can I select specific rows and/or columns from a data frame?
How can I combine multiple commands into a single command?
How can create new columns or remove existing columns from a data frame?
How can I reformat a dataframe to meet my needs?
04:40 5. Data Visualisation with ggplot2 What are the components of a ggplot?
How do I create scatterplots, boxplots, and barplots?
How can I change the aesthetics (ex. colour, transparency) of my plot?
How can I create multiple plots at once?
06:35 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.