Hi again all,

As the original code lines I had dated back to 2007 that may have 
predated reshape2?

In any case the use of *dcast *rather than /*cast*/ solved the issue.

Then with 3 steps:
Stop
read
Think

I saw I just needed to change the line
input.cast <- cast(input.melt, Species ~ *Date*, fun.aggregate = sum)
to
input.cast <- cast(input.melt, Species ~ *Time*, fun.aggregate = sum)

...and it all works as expected and needed.

Thanks again all who replied.


Bruce

	[[alternative HTML version deleted]]

