1. 学习
  2. /
  3. 课程
  4. /
  5. Joining Data with data.table in R

Connected

练习

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.

说明 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".