Introduction to the tidyverse
Table 1
Table
6 / 10
Table 1
Table
Table 1
| Verb | Purpose | Clinical data management example |
|---|---|---|
| `select()` | Choose columns | Keep participant ID, site, and outcome variables |
| `filter()` | Choose rows | List records with missing consent dates |
| `mutate()` | Create or modify columns | Calculate age from date of birth and enrollment date |
| `count()` | Count records by category | Count participants by site and consent status |
| `group_by()` | Define groups for summary | Summarize missingness by site |
| `summarise()` | Create summary statistics | Count missing outcomes and duplicate IDs |
| `arrange()` | Sort rows | Sort query listing by site and participant ID |
| `left_join()` | Merge datasets | Add laboratory results to enrollment records |