Session Ready
Exercise

More melts

A data table containing confirmed Ebola case numbers from Guinea in weeks 50 and 51 of the outbreak has been loaded into your R session. Your goal is to melt ebola_wide into a long format data table containing a single column for the case numbers variable.

Instructions 1/2
undefined XP
  • 1
  • 2

Use the measure.vars argument to stack the columns "Week_50" and "Week_51". The new column containing its values should be called "cases", and the new column of variable labels should be called "period".