CLiREN-LMS
Data Analysis in R

Preparing Data Before Analysis

Code Example 2

30-45 minutes Applied Step 5 of 7
Code

Code Example 2

5 / 7
Code

Code Example 2

r

prepared_data |>
  summarise(
    n_rows = n(),
    n_participants = n_distinct(participant_id),
    duplicate_participant_rows = n_rows - n_participants
  )