Reshape and Transform

Reshape Dataframe from wide to long
library(reshape2) Stats <- melt(Stats,id.vars = "Day") colnames(Stats) = c("Day", "Variable", "Value")