📓 Data Carpentry R lessons on ecology.
Clone or download
Failed to load latest commit information.
.github Add template (#257) Apr 20, 2017
favicon add favicons Nov 3, 2017
img fix typo in joins image Sep 26, 2018
.Rbuildignore add travis machinery Oct 16, 2017
.gitignore add linkchecker output to .gitignore Oct 20, 2017
.mailmap improve CITATION Apr 28, 2017
.travis.yml add update-copyright.py Oct 20, 2017
.update-copyright.conf consolidate author info + use update-copyright.py Mar 2, 2016
.zenodo.json regenerate lesson Jul 21, 2017
00-before-we-start.Rmd Fix RStudio cheatsheet link in 00-before-we-start Aug 27, 2018
01-intro-to-r.Rmd Add a 3rd question to challenge in intro to R (#408) Apr 25, 2018
02-starting-with-data.Rmd [fix #406] Remove reference to `class()` (#419) May 6, 2018
03-dplyr.Rmd Update 03-dplyr.Rmd Jul 9, 2018
04-visualization-ggplot2.Rmd fix ggtheme link Aug 27, 2018
05-r-and-databases.Rmd fixed typo in unique genera code Jun 12, 2018
AUTHORS regenerate lesson Jul 21, 2017
CITATION.Rmd Link DOIs to preferred resolver (#377) Mar 10, 2018
CONDUCT.Rmd use footer on other pages Nov 3, 2017
CONTRIBUTING.Rmd Update CONTRIBUTING.Rmd (#427) May 18, 2018
LICENSE.Rmd update CC BY license to 4.0 Mar 23, 2018
Makefile [fix #389] install dependencies before building the lessons Mar 21, 2018
NEWS.md add NEWS Apr 26, 2017
README.md add slack channel info Mar 28, 2018
_navbar.html add search bar Jun 26, 2018
_page_built_on.Rmd use Rmd partial for showing built on Nov 3, 2017
_site.yml add search bar Jun 26, 2018
build_lesson.R don't output content of CSV in travis log Oct 20, 2017
check-spelling.R update words to ignore Jul 24, 2017
code-handout.R render lesson Oct 15, 2017
footer.html add search bar Jun 26, 2018
header.html add search bar Jun 26, 2018
index.Rmd update lesson title Sep 12, 2018
instructor-notes.md add mention of tidyr to instructor guide Feb 23, 2018
make_code_handout.R simplify makefile Oct 17, 2017
needed_packages.R to aid instructors who are having R package install issues Jan 3, 2018
reference.md update reference to match new database lesson Apr 25, 2017
setup.R create knitr engine for text based answers Feb 15, 2018
style.css add search bar Jun 26, 2018
tic.R remove unnused argument Aug 27, 2018


Build Status Create a Slack Account with us Slack Status

Data carpentry: R for data analysis and visualization of Ecological Data

This is an introduction to R designed for participants with no programming experience. These lessons can be taught in 3/4 of a day (6 hours). They start with some basic information about syntax for the R programming language, the RStudio interface, and move through to specific programming tasks, such as importing CSV files, the structure of data frame objects in R, dealing with categorical variables (i.e. factors), basic data manipulation (adding/removing rows and columns), and finishing with calculating summary statistics and a brief introduction to plotting. There is also a lesson on how to use databases from R that is intended to be taught after the SQL lesson, and ideally at the end of a Data Carpentry workshop.


  • Having R and RStudio installed (though see the first lesson, Before we start for installation instructions)


Code handout

There is "code handout" (code-handout.R) that is intended to be distributed to the participants. This file includes some of the examples used during teaching and the titles of the section. It provides a guide that the participants can fill in as the lesson progresses. Participants can also source code from this file to avoid typos in more complex examples.


If you would like to contribute to the content and development of these lessons, we encourage you to review our contributing guide.


If you have any questions or feedback, please open an issue, contact the maintainers, or come chat with us on the Slack Channel for this lesson. If you don't already have a Slack account with the Carpentries, you can create one.

  • Ana Costa Conrado
  • Auriel Fournier
  • François Michonneau
  • Brian Seok
  • Shiva Guru