WK-02 - Loading and manipulating data in R

We'll learn how to load, view, and manipulate your data in R!

Workshop 2: Loading and manipulating data in R

In this workshop, you will learn how to load, view, and manipulate your data in R. You will learn basic commands to inspect and visualize your data, and learn how to fix errors that may have occurred while loading your data into R. In addition, you will learn how to write an R script, which is a text file that contains your R commands and allows you to rerun your analyses in one simple touch of a key (or maybe two, or three…)! We will then introduce tidyr and dplyr, two powerful tools to manage and re-format your dataset, as well as apply simple or complex functions on subsets of your data. This workshop will be useful for those progressing through the entire workshop series, but also for those who already have some experience in R and would like to become proficient with new tools and packages.


Material

badge License: CC BY-NC-SA 4.0

Slides Book Script
English English English
Français Français Français

Note: The wiki for this workshop was converted to Bookdown in September 2021.
The wiki pages for this workshop will no longer be updated (Archive: EN, FR).

Datasets

co2_good.csv co2_broken.csv


Contributors

This workshop was originally developed by Johanna Bradie, Vincent Fugère, and Thomas Lamy.

Since 2014, several QCBS members contributed to consistently and collaboratively develop and update this workshop, as part of the Learning and Development Award from the Québec Centre for Biodiversity Science. They were:

2022 - 2021 - 2020 2019 - 2018 - 2017 2016 - 2015 - 2014
Valentin Lucet Gabriel Muñoz Johanna Bradie
Kevin Cazelles Katherine Hébert Vincent Fugère
Pedro Henrique P. Braga Marie-Hélène Brice Thomas Lamy
Marie-Hélène Brice Sebastien Portalier
Gabriel Muñoz Zofia Taranu
Hassen Allegue Cédric Frenette Dussault
Willian Vieira