Data Carpentry R lessons on ecology http://datacarpentry.github.io/R-ecology-lesson
HTML R Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_data
_includes
_layouts
capstone_soln
css
img
libs
ruby
.gitignore
.mailmap
.update-copyright.conf
01-intro-to-R.Rmd
01-intro-to-R.html
01-notes.Rmd
01-notes.html
02-dplyr.Rmd
02-dplyr.html
02-notes.Rmd
02-notes.html
03-ggplot2.Rmd
03-ggplot2.html
03-notes.Rmd
03-notes.html
04-rmarkdown.Rmd
04-rmarkdown.html
AUTHORS
CONTRIBUTING.md
CONTRIBUTORS.md
LICENSE.md
Makefile
README.md
_config.yml
capstone.Rmd
capstone.html
challenge_slides.Rmd
challenge_slides.html
data_carpentry_2016-06-02.R
data_carpentry_2016-08-24.R
handout-script.R
index.md
motivation.html
motivation.md
setup.R

README.md

layout title keywords
lesson
Data carpentry -- Starting with R for data analysis
R
subset
data.frame
read.csv

This is an introduction to R designed for participants with no programming experience. These lessons can be taught in 3/4 of a day. They start with some basic information about R syntax, the RStudio interface, and move through how to import CSV files, the structure of data.frame, how to deal with factors, how to add/remove rows and columns, and finish with how to calculate summary statistics for each level and a very brief introduction to plotting.

(This particular set of lessons has revisions by Karl Broman for a Data Carpentry workshop at UW-Madison on 1-2 June 2016.)

Prerequisites

  • Having RStudio installed

Topics

Other resources

Organization of the repository

The lessons are written in Rmarkdown. A Makefile generates an html page for each topic using knitr. In the process, knitr creates an intermediate markdown file. These are removed by the Makefile to avoid clutter.

The Makefile also generates a "skeleton" file 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. It also avoids typos while typing more complex examples. Each topic generates a skeleton file, and the files produced are then concatenated to create a single file and the intermediate files are deleted. To be included in the skeleton file, a chunk of code needs to have the arguments purl=TRUE.