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
______________________________________________
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.