CLiREN-LMS
Introduction to R for Clinical Data Management

Introduction to the tidyverse

Table 1

30-45 minutes Applied Step 6 of 10
Table

Table 1

6 / 10
Table

Table 1

VerbPurposeClinical data management example
`select()`Choose columnsKeep participant ID, site, and outcome variables
`filter()`Choose rowsList records with missing consent dates
`mutate()`Create or modify columnsCalculate age from date of birth and enrollment date
`count()`Count records by categoryCount participants by site and consent status
`group_by()`Define groups for summarySummarize missingness by site
`summarise()`Create summary statisticsCount missing outcomes and duplicate IDs
`arrange()`Sort rowsSort query listing by site and participant ID
`left_join()`Merge datasetsAdd laboratory results to enrollment records