Dear R Community:
This is a newbie reshare2 question; it starts with read a set of data and to melt it: x = data.frame(I=c("a","b","a","b","b"), V=c(2,4,2,5,7)) y = melt(x, id = 1:1) What is wrong with the final dcast step: z = dcast(y, formula = I ~ "variable", c(length, mean, median)) Will one of you please help me with this problem? [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.