r-ecology-lesson
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 7 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.3%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: fishtree-attempt
- License: other
- Language: R
- Default Branch: main
- Homepage: https://fishtree-attempt.github.io/R-ecology-lesson/
- Size: 19.6 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
Data carpentry: R for data analysis and visualization of Ecological Data
This is an introduction to R designed for participants with no programming experience. It can be taught in 3/4 of a day (approximately 6 hours). The lesson starts with some basic information about syntax for the R programming language, the RStudio interface, and moves 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.
Prerequisites
The lesson assumes no prior knowledge of R or RStudio. Learners should have R and RStudio installed on their computers. They will also need to be able to install R packages from CRAN, create directories, and download files. See the lesson website for instructions on installing R, RStudio, and the required R packages.
Topics
- Before we start
- Introduction to R
- Starting with data
- Manipulating, analyzing and exporting data with
tidyverse - Data visualization with
ggplot2 - SQL databases and R
Code handout
There is a code handout 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.
Contributing
Contributions to the content and development of these lesson are very welcome! If you would like to contribute, we encourage you to review our contributing guide.
Questions
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.
- Tobias Busch
- Ana Costa Conrado
- François Michonneau
- Maneesha Sane
- Brian Seok
- Ashwin Srinath
Citation
Please cite as
François Michonneau, Tracy Teal, Auriel Fournier, Brian Seok, Adam Obeng, Aleksandra Natalia Pawlik, … Ye Li. (2019, July 1). datacarpentry/R-ecology-lesson: Data Carpentry: Data Analysis and Visualization in R for Ecologists, June 2019 (Version v2019.06.1). Zenodo. http://doi.org/10.5281/zenodo.3264888
Owner
- Name: Carpentries Sandbox
- Login: fishtree-attempt
- Kind: organization
- Email: zkamvar+fishtree@carpentries.org
- Website: https://carpentries.github.io/workbench
- Repositories: 6
- Profile: https://github.com/fishtree-attempt
Testing The Carpentries Workbench
Citation (CITATION.Rmd)
# CITATION
```{r, echo=FALSE, results="hide"}
eds <- personList(
person(given = "Ana Costa", family = "Conrado"),
person(given = "Auriel M.V.", family = "Fournier"),
person(given = "Brian", family = "Seok"),
person(given = "Francois", family = "Michonneau")
)
generate_citation <- function(authors = "AUTHORS",
editors = eds,
doi = "10.5281/zenodo.3264888") {
aut <- readLines(authors)
# remove first line
aut <- aut[-1]
aut <- as.person(aut)
bibentry(
bibtype = "Misc",
author = personList(aut),
title = "datacarpentry/R-ecology-lesson: Data Carpentry: Data Analysis and Visualization in R for Ecologists, June 2019",
editor = editors,
month = format(Sys.Date(), "%B"),
year = format(Sys.Date(), "%Y"),
url = "https://datacarpentry.org/R-ecology-lesson/",
doi = doi
)
}
generate_zenodo_json <- function(editors) {
tfile <- tempfile()
system(paste("git shortlog -n -e -s >", tfile))
aut <- read.table(file = tfile, sep = "\t")
aut <- as.person(aut[, 2])
pp <- lapply(aut, function(x) {
res <- gsub("^\\s", "", paste(paste(x$given, collapse = " "),
x$family))
list(name = res)
})
eds <- paste(editors$given, editors$family)
res <- list(creators = pp)
if (!is.null(editors)) {
ctb <- lapply(paste(editors$given, editors$family),
function(x)
list(type = "Editor", name = x))
res <- c(list(contributors = ctb), res)
}
cat(jsonlite::toJSON(res, auto_unbox = TRUE), file = ".zenodo.json")
}
system("update-copyright.py")
## generate_zenodo_json(editors = eds)
```
## Data
Data is from the paper S. K. Morgan Ernest, Thomas J. Valone, and James
H. Brown. 2009. Long-term monitoring and experimental manipulation of a
Chihuahuan Desert ecosystem near Portal, Arizona, USA. Ecology 90:1708.
[http://esapubs.org/archive/ecol/E090/118/](http://esapubs.org/archive/ecol/E090/118/)
A simplified version of this data, suitable for teaching is available on
[figshare](https://doi.org/10.6084/m9.figshare.1314459.v5).
## Lessons
The first workshop was run at NESCent on May 8-9, 2014 with the development and
instruction of lessons by Karen Cranston, Hilmar Lapp, Tracy Teal, and Ethan
White and contributions from Deb Paul and Mike Smorul.
Original materials adapted from SWC Python lessons by Sarah Supp. John Blischak
led the continued development of materials with contributions from Gavin
Simpson, Tracy Teal, Greg Wilson, Diego Barneche, Stephen Turner, and Karthik
Ram. This original material has been modified and expanded by François
Michonneau.
The **`dplyr`** lesson was created by Kara Woo, who copied and modified and
modified from Jeff
Hollister's [materials](https://usepa.github.io/introR/2015/01/14/03-Clean/).
The **`ggplot2`** lesson was initially created by Mateusz Kuzak, Diana Marek,
and Hedi Peterson, during a Hackathon in Espoo, Finland on March 16-17, 2015,
sponsored by the [ELIXIR project](https://elixir-europe.org/).
You can cite this Data Carpentry lesson as follow:
```{r, echo=FALSE, results="asis"}
print(generate_citation(), style = "html")
```
or as a BibTeX entry:
```{r, echo=FALSE, comment=""}
print(generate_citation(), style = "bibtex")
```
GitHub Events
Total
Last Year
Dependencies
- actions/upload-artifact v3 composite
- actions/checkout v3 composite
- carpentries/actions/check-valid-pr main composite
- carpentries/actions/comment-diff main composite
- carpentries/actions/download-workflow-artifact main composite
- carpentries/actions/download-workflow-artifact main composite
- carpentries/actions/remove-branch main composite
- carpentries/actions/check-valid-pr main composite
- carpentries/actions/comment-diff main composite
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- carpentries/actions/check-valid-pr main composite
- carpentries/actions/setup-lesson-deps main composite
- carpentries/actions/setup-sandpaper main composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- actions/checkout v3 composite
- carpentries/actions/setup-lesson-deps main composite
- carpentries/actions/setup-sandpaper main composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- actions/checkout v3 composite
- carpentries/actions/check-valid-credentials main composite
- carpentries/actions/update-lockfile main composite
- carpentries/create-pull-request main composite
- r-lib/actions/setup-r v2 composite
- actions/checkout v3 composite
- carpentries/actions/check-valid-credentials main composite
- carpentries/actions/update-workflows main composite
- carpentries/create-pull-request main composite
- actions/checkout v3 composite
- chetan/invalidate-cloudfront-action master composite
- jakejarvis/s3-sync-action v0.5.1 composite