CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Joining Data with data.table in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Print ebola_wide
___

# Stack Week_50 and Week_51
melt(___)
Modifier et exécuter le code