[R] reshape2 issue solved Tnx!

John Kane jrkrideau at inbox.com
Wed Jun 5 21:29:44 CEST 2013


Yes , I think it was only a year or two ago that the change occured.

John Kane
Kingston ON Canada


> -----Original Message-----
> From: neotropical.bats at gmail.com
> Sent: Wed, 05 Jun 2013 15:26:25 -0400
> To: r-help at r-project.org
> Subject: [R] reshape2 issue solved Tnx!
> 
> 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]]
> 
> ______________________________________________
> R-help at 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.

____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails



More information about the R-help mailing list