Skip to content

Repository files navigation

TADA — worked example

Caterpillar Abundance Analysis

PreprintLicense: MITData: CC BY 4.0

Description

This is an example repository for "TADA! Simple guidelines to improve analytical code sharing for transparency and reproducibility" manuscript. Note this is example data.

Instructions

The only code file is the Caterpillar.Rmd which has all the code needed to run. Data is in the caterpillar_data folder (data.csv).

Authors

  • Edward R. Ivimey-Cook -

Affiliations

  • University of East Anglia, UK

Funders

  • SORTEE

Directory Structure

TADA/
├── caterpillar_data/
│ └── data.csv
├── Caterpillar.Rmd
├── MyCode.R
├── index.html
└── README.md

Data Files

caterpillar_data/data.csv

Caterpillar count per habitat

Dimensions: 150 rows × 2 columns

Variables:

ColumnTypeDescriptionUnitsSummary
habitatcategoricalHabitats A-Elevels: A, B, C, D, E
caterpillar_countnumericNumber of caterpillars found during surveyingNumber of Caterpillarsrange 2–36

Other Files

index.html

The html output for the TADA! website.

Code

Scripts should be run in the following order:

  1. MyCode.R

    Load packages, imports caterpillar_data, runs a poisson glm on filtered data. Produces Figure 1.

  2. Caterpillar.Rmd

    The RMarkdown file to create an example report

R Environment

R version: 4.5.2

PackageVersion
dplyr1.2.1
ggplot24.0.2
here1.0.2

README generated with READMEBuilder on 18 June 2026.

Citation

A machine-readable CITATION.cff is included, so GitHub's "Cite this repository" button gives formatted APA and BibTeX.

Contact

License

Code is licensed under the MIT License. Data are licensed under CC BY 4.0.

About

Worked example repository for TADA (Transferable, Available, Documented, Annotated) code sharing guidelines

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages