# A tibble: 2 × 5
voucher species call_1_s call_2_s call_3_s
<chr> <chr> <dbl> <dbl> <dbl>
1 TJD 839 E. pipilans 0.21 0.19 0.22
2 TJD 848 E. nitidus 0.48 0.51 0.47
Eleutherodactylus Research Studio · Fall 2026
2026-08-31
Every product this class ships is built on a measurement table:
The published paper shows the summary (mean ± SD, range, n). The science lives in the table underneath it — and whether that table is usable depends on decisions you make before you type the first number.
Today: how to make those decisions well.
Sound data are nested: a recording contains calls, made of notes, made of pulses.
Each level is a different unit of observation, and each answers different questions:
Your team will need tables at more than one of these levels. Deciding “one row = one X” — and writing it down — is the single most important data decision you’ll make.
That’s it. (Wickham 2014 — the paper that named the idea.)
Sounds obvious. Almost every spreadsheet ever made by a biologist violates at least one of them — including, historically, mine.
Real spreadsheets tend to look like this:
| Species | June 22 | June 23 | June 24 |
|---|---|---|---|
| E. marnockii (BFL) | 12 calls (24 °C) | 8 calls | — |
| E. pipilans | 3 calls (26.5) | n/a | |
| E. nitidus | see notes | 15 | 15 |
Take 60 seconds with your neighbor: how many distinct problems can you find?
| Problem | Where |
|---|---|
| Data stored in column headers | the dates |
| Two variables in one cell | “12 calls (24 °C)” |
| Two variables in one column | species + locality: “E. marnockii (BFL)” |
| Inconsistent units/format | “24 °C” vs “26.5” |
| Three different codes for missing | “—”, blank, “n/a” |
| A value that isn’t a value | “see notes” |
None of these confuse a human reader. All of them stop a computer cold — and the computer is who reads this table 500 times this semester.
| species | locality | date | temp_c | n_calls |
|---|---|---|---|---|
| E. marnockii | BFL | 2026-06-22 | 24.0 | 12 |
| E. marnockii | BFL | 2026-06-23 | NA | 8 |
| E. pipilans | Guerrero | 2026-06-22 | 26.5 | 3 |
| E. nitidus | Oaxaca | 2026-06-23 | NA | 15 |
temp_c)NA — visibly missing, not silently blankYou’ll often measure in wide format — it’s natural at the keyboard:
# A tibble: 2 × 5
voucher species call_1_s call_2_s call_3_s
<chr> <chr> <dbl> <dbl> <dbl>
1 TJD 839 E. pipilans 0.21 0.19 0.22
2 TJD 848 E. nitidus 0.48 0.51 0.47
But R’s plotting and stats tools want one measurement per row (long format).
pivot_longer(): ten seconds of code# A tibble: 6 × 4
voucher species call duration_s
<chr> <chr> <chr> <dbl>
1 TJD 839 E. pipilans call_1_s 0.21
2 TJD 839 E. pipilans call_2_s 0.19
3 TJD 839 E. pipilans call_3_s 0.22
4 TJD 848 E. nitidus call_1_s 0.48
5 TJD 848 E. nitidus call_2_s 0.51
6 TJD 848 E. nitidus call_3_s 0.47
Enter data in whichever shape is least error-prone — and let code, never copy-paste, do the reshaping.
From Broman & Woo (2018), Data Organization in Spreadsheets — assigned skim, link on Resources:
notes or flag column insteadNA for missing, never blank, never 0, never “-”YYYY-MM-DD (2026-08-31). It sorts correctly as text and every program parses it the same wayCloser to home: our field catalog once recorded recording numbers as ranges like “1026-7.” One value? Two? A date? A human knows. Software guessed — and we paid for it in cleanup.
Columns: lowercase, no spaces, units in the name — snake_case
dominant_freq_khz note_duration_s temp_c n_notes
not Dominant Frequency (kHz) — spaces and symbols force quoting gymnastics in R forever after.
Files: no spaces, ISO dates, and names that still mean something in December:
2026-09-14_marnockii_call-measurements.csv ✓
FINAL_data_v2_REALLY_final(1).xlsx ✗
.xlsx is fine as a data-entry surface. It is not an archive format: export to CSV, and the CSV is the version of recordThe recording inventory — the table your team assignments are being built from this week — is exactly this kind of object: one row per recording, with voucher number, species, locality, date, format, and duration, assembled by a script.
And a cautionary tale from my own catalog: frog calls are temperature-dependent, so a call measurement without temperature is half a measurement. Of ~67 call-vouchered specimens, the catalog has ambient temperature for about 4 — the rest must be recovered from field notebooks, by hand, years later.
That’s what an “I’ll remember it” decision costs. If it isn’t in the table, it doesn’t exist.
Readings (short, on the Resources page):
ut-fri-biodiversity.github.io/eleuth-calls