[R] Syntax Check: rshape2 melt()
Rich Shepard
rshepard at appl-ecosys.com
Thu Oct 27 23:48:33 CEST 2011
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
More information about the R-help
mailing list