CLiREN-LMS
Data Cleaning and Preparation in R

Common Cleaning Risks and How to Avoid Them

Code Example 2

30-45 minutes Applied Step 8 of 9
Code

Code Example 2

8 / 9
Code

Code Example 2

r

enrollment_prepared <- enrollment_data |>
  mutate(
    consent_date = lubridate::ymd(consent_date),
    enrollment_date = lubridate::ymd(enrollment_date)
  )