library(reshape2)
?cast
Use acast or dcast depending on whether you want vector/matrix/array
output or data frame output.
Jean
On Wed, Jun 5, 2013 at 9:35 AM, Bruce Miller batsnc...@gmail.com wrote:
Hi all,
I am revisiting using reshape2 to aggregate critter (bats) occurrences
by time
Hi all,
I am revisiting using reshape2 to aggregate critter (bats) occurrences
by time blocks and have the final output for each row sum a percentage
such that the row sums total 1 (100%).
Reshape2 library is loaded on start.
The old code I had stored in NotePad++ seems to no longer work as I
Hello,
cast is in reshape library. Is it loaded?
Regards,
Pascal
2013/6/5 Neotropical bat risk assessments neotropical.b...@gmail.com
Hi all,
I am revisiting using reshape2 to aggregate critter (bats) occurrences
by time blocks and have the final output for each row sum a percentage
such
Hi again all,
Several replied ASAP that I also needed reshape loaded and not just
reshape2.
Hmmm tried that and I had some output but not the correct format.
What I need is to run simulations of time overlap between species as per
the simulation program data input constraints:
The basis for
Bruce,
I'm not sure what's going on since I tried this on my Linux system running
R 3.0.0 and just did:
library(reshape2)
help(cast)
and the help for 'cast' came up. There was no indication to me that
'reshape' was needed and I can not see a dependency in CRAN for 'reshape'.
But I built R from
There is indeed a ?cast help topic in reshape2, but there is no cast
function. Instead there is dcast (returns a data.frame) and
acast(returns an array).
Bruce, you can try your original example with
input.cast - dcast(input.melt, Species ~ Date, fun.aggregate = sum)
Best,
Ista
On Wed, Jun 5,
Interestingly enoughhelp(cast) did not work but ?cast does
As Ista says, there is no cast() in reshape2
John Kane
Kingston ON Canada
-Original Message-
From: tea...@gmail.com
Sent: Wed, 5 Jun 2013 11:55:43 -0400
To: neotropical.b...@gmail.com
Subject: Re: [R] reshape2 issue
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*,
Yes , I think it was only a year or two ago that the change occured.
John Kane
Kingston ON Canada
-Original Message-
From: neotropical.b...@gmail.com
Sent: Wed, 05 Jun 2013 15:26:25 -0400
To: r-help@r-project.org
Subject: [R] reshape2 issue solved Tnx!
Hi again all
Hi all,
I am revisiting using reshape2 to aggregate critter (bats) occurrences
by time blocks and have the final output for each row sum a percentage
such that the row sums total 1 (100%).
Reshape2 library is loaded on start.
The old code I had stored in NotePad++ seems to no longer work as I
10 matches
Mail list logo