Library Data Carpentry Series
Welcome to the Library Data Carpentry Series, designed specifically for library staff, data librarians, and information professionals. This series equips you with practical, hands-on skills to manage, clean, analyze, and visualize library-related data—such as circulation statistics, catalog metadata, usage analytics, and patron data—while promoting open data practices.
Series Overview
- Target Audience: Librarians, library technicians, and support staff with basic computer skills. No prior programming experience required.
- Format: 8 modular workshops (3-4 hours each), deliverable in-person, virtually, or self-paced. Each includes:
- Learning objectives
- Interactive exercises with library-themed datasets (e.g., mock circulation logs, MARC records)
- Setup instructions
- Etherpad/collaborative notes
- Prerequisites: A laptop with internet access. Pre-workshop setup guide provided.
- Tools: Free/open-source: Google Sheets/Excel, OpenRefine, R/RStudio, Git.
- Datasets: Freely available or mocked (e.g., from Library of Congress, IMLS public libraries data).
- Instructors: Pair programming encouraged; helpers for 1:4 instructor:learner ratio.
- Schedule Suggestion (weekly, half-days):
| Workshop | Date | Title |
|---|
| 1 | Week 1 | Data Organization in Spreadsheets |
| 2 | Week 2 | Cleaning Data with OpenRefine |
| 3 | Week 3 | Intro to the Unix Shell |
| 4 | Week 4 | Version Control with Git |
| 5 | Week 5 | Intro to R for Data Analysis |
| 6 | Week 6 | Data Wrangling in R |
| 7 | Week 7 | Data Visualization in R |
| 8 | Week 8 | Reproducible Research & Sharing |
All materials are CC-BY 4.0 licensed, hosted on GitHub (repo template: library-data-carpentry/lessons).
Workshop 1: Data Organization in Spreadsheets
Duration: 3 hours
Objectives:
- Explain key points of data organization (e.g., Tidy Data principles).
- Import/export library data (CSV, Excel).
- Perform basic cleaning and quality checks.
Agenda:
- Intro (20 min): Why spreadsheets fail; library examples (messy circulation data).
- Hands-on (2 hrs):
- Load IMLS library survey data.
- Exercises: Fix headers, split columns (e.g., author names), remove duplicates.
- Best practices: One fact per cell; avoid merged cells.
- Wrap-up (40 min): Export to CSV; Q&A.
Dataset: IMLS Public Libraries Survey (CSV)
Resources: Google Sheets template, cheat sheet.
Workshop 2: Cleaning Data with OpenRefine
Duration: 3.5 hours
Objectives:
- Use OpenRefine to explore and transform messy data.
- Cluster and reconcile values (e.g., standardize subject headings).
Agenda:
- Intro (30 min): Install OpenRefine; load MARC-like metadata.
- Hands-on (2.5 hrs):
- Facets/filters on library catalog data.
- Exercises: Cluster "Shakespeare" variants; split author/title; geocode branches.
- Text faceting for outliers.
- Export & Wrap-up (30 min): JSON/CSV export.
Dataset: Mock library catalog (500 records).
Resources: OpenRefine cheatsheet.
Workshop 3: Intro to the Unix Shell
Duration: 3 hours
Objectives:
- Navigate filesystems and manipulate data via command line.
- Automate repetitive library tasks (e.g., batch renaming files).
Agenda:
- Intro (20 min): Shell basics; why for library servers?
- Hands-on (2 hrs):
pwd, ls, cd; wildcards on usage logs.
- Exercises:
head/tail on circulation CSVs; grep for overdue books; pipes (|).
- Loops & Wrap-up (40 min): Simple
for loops.
Dataset: Folder of library log files.
Resources: Software Carpentry Shell lesson adapted.
Workshop 4: Version Control with Git
Duration: 3 hours
Objectives:
- Track changes in data projects.
- Collaborate on shared library datasets via GitHub.
Agenda:
- Intro (30 min): Git workflow; create repo for data project.
- Hands-on (2 hrs):
git init, add, commit; branches.
- Exercises: Version a data cleaning script; pull requests for team review.
- GitHub Pages (30 min): Host a data report.
Resources: GitHub Desktop; library-data-carpentry repo.
Workshop 5: Intro to R for Data Analysis
Duration: 4 hours
Objectives:
- Read/write data in R.
- Basic stats/summaries on library metrics.
Agenda:
- Setup (30 min): Install R/RStudio; tidyverse.
- Hands-on (3 hrs):
readr::read_csv() on circulation data.
- Exercises:
dplyr select/filter/mutate (e.g., filter popular genres); summarise() avg checkouts.
- Wrap-up: Simple plots.
Dataset: Circulation + holdings CSV.
Resources: Data Carpentry R for Social Scientists.
Workshop 6: Data Wrangling in R
Duration: 3.5 hours
Objectives:
- Reshape and join datasets (e.g., merge circulation + patron demographics).
Agenda:
- Intro (20 min):
tidyr + dplyr.
- Hands-on (2.5 hrs):
pivot_longer/wider; left_join().
- Exercises: Reshape usage stats by month; join catalog + loans.
- Factors & Dates: Handle library dates.
Workshop 7: Data Visualization in R
Duration: 3.5 hours
Objectives:
- Create publication-ready plots.
- Visualize trends (e.g., circulation over time).
Agenda:
- Intro (30 min):
ggplot2 grammar.
- Hands-on (2.5 hrs):
- Scatterplots, bar charts (e.g., genres by branch).
- Exercises: Facets for multi-branch comparison; themes/export.
- Dashboard Teaser:
flexdashboard.
Resources: R4DS Visualization Chapter.
Workshop 8: Reproducible Research & Sharing
Duration: 3 hours
Objectives:
- Make projects reproducible with R Markdown.
- Share via Zenodo/OSF; FAIR principles for library data.
Agenda:
- Intro (20 min): R Markdown knit.
- Hands-on (2 hrs):
- Build report: Analysis + viz of full dataset.
- Exercises: Embed Git; DOI assignment.
- Publishing (40 min): Repositories for libraries.
Implementation Guide
- Host on: GitHub Pages or library website.
- Assessment: Pre/post surveys (sticky notes); Etherpads.
- Customization: Swap R for Python if preferred.
- Certification: Badge for completers via OpenBadges.
This series is ready to deploy—fork the template repo and start teaching! Questions? Let's investigate your data mysteries. 🕵️♂️