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]]

