Syntax Check: rshape2 melt()
On Thu, 27 Oct 2011, Rich Shepard wrote:
So I did the conversion and melting the long way:
tds.a <- tds.anal tds.a$sampdate <- factor(tds.a$sampdate)
I didn't copy the melt command: tds.anal.m <- melt(tds.a)
However, ... c.tds.anal <- dcast(tds.a, site + sampdate ~ param, value_var = 'quant')
And the above was actually c.tds.anal <- dcast(m.tds.anal ...) but produces the same error. Rich