1. Learn
  2. /
  3. Courses
  4. /
  5. Helsinki Open Data Science

Connected

Exercise

Linear Mixed Effects Models: Gather 'round

Again, to be able to study the diffecences between the variable of interest, that is the weight of the individual rats, and the groups as well as the change of the weight in time, we want to gather the data to a long form.

This time we need to extract the number of days as an integer variable.

Instructions

100 XP
  • Assign key as WD and value as Weight and convert the data to a long form
  • Mutate a new variable Time by extracting the number of the day from WD
  • glimpse() the data