CLiREN-LMS
Introduction to R for Clinical Data Management

Basic Data Quality Checks in R

Code Example 6

30-45 minutes Applied Step 12 of 19
Code

Code Example 6

12 / 19
Code

Code Example 6

r

age_range_flags <- enrollment_data |>
  filter(age_years < 18 | age_years > 120) |>
  select(participant_id, site, age_years)

age_range_flags