CLiREN-LMS
Data Analysis in R

Preparing Data Before Analysis

Code Example 2

30-45 minutes Applied Step 8 of 11
Code

Code Example 2

8 / 11
Code

Code Example 2

r

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