Only when it takes too long ;)
> I was fussing with some DNA microarrays in a twin study and wanted to plot
> correlations within pairs... melt() took about 30 minutes on a box with 64GB
> of RAM, and cast() took another 20 minutes.
Wow - that is really slow for melt. Is there someway you could
provide me with the data? Or the same basic structure but with the
data replaced by random values? I'm fairly certain it should be
possible to do much better for melt.
With respect to cast, I have a half rewritten version of reshape based
on the ideas from plyr that is 10-15 times faster for pure reshaping
and takes up much less memory. Even better, it actually has a decent
theoretical underpinning so I can actually understand how it works
(it's all about figuring out how to move the data around and then
doing it all at once). Unfortunately I don't currently have the time
to finish off the work and make it completely compatible with the
existing version of reshape.
Hadley