Skip to content
📓 Data Carpentry R lessons on ecology.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add template (#257) Apr 20, 2017
favicon add favicons Nov 3, 2017
img Renamed files per @fmichonneau suggestion for @chriseshleman Nov 28, 2018
.travis.yml add Oct 20, 2017
.update-copyright.conf consolidate author info + use Mar 2, 2016
.zenodo.json regenerate lesson Jul 21, 2017
00-before-we-start.Rmd update link (replace GitHub repo link to blog post) Jan 14, 2019
01-intro-to-r.Rmd Merge branch 'master' into fix-spaces-intro-R-lesson Mar 4, 2019
02-starting-with-data.Rmd add > to avoid break in callout Apr 19, 2019
03-dplyr.Rmd don't try to View() dataset when rendering Jan 14, 2019
05-r-and-databases.Rmd fix for issue #531 i.e definition of join and minor error in challeng… Apr 4, 2019
CITATION.Rmd Link DOIs to preferred resolver (#377) Mar 10, 2018
LICENSE.Rmd update CC BY license to 4.0 Mar 23, 2018
Makefile Merge branch 'master' of Mar 27, 2019 add NEWS Apr 26, 2017 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
build_lesson.R use checker for link validation Mar 27, 2019
check-spelling.R update words to ignore Jul 24, 2017
code-handout.R render lesson Oct 15, 2017
footer.html update date in footer Mar 25, 2019
header.html add motomo analytics Feb 8, 2019
index.Rmd update windows install Mar 23, 2019 add mention of tidyr to instructor guide Feb 23, 2018
needed_packages.R to aid instructors who are having R package install issues Jan 3, 2018 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 use checker for link validation Mar 27, 2019

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
You can’t perform that action at this time.