It seems that we can't change the order of varying argument or v.names. "Notice that the order of variables in varying is like x.1,y.1,x.2,y.2. "
Code can only be: reshape(d,varying=c("x1","y1","x2","y2"),v.names=c("x","y"),dir="long") ----- A R learner. -- View this message in context: http://r.789695.n4.nabble.com/stats-reshape-question-tp2316583p2316606.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.