[R] Simple 2-Way Anova issue in R
jim holtman
jholtman at gmail.com
Mon Nov 9 01:42:45 CET 2009
> x
Year Depth Biomass1 Biomass2
1 1999 10 14.3 14.7
2 1999 15 14.7 15.6
> require(reshape)
> melt(x, id=c('Year','Depth'))
Year Depth variable value
1 1999 10 Biomass1 14.3
2 1999 15 Biomass1 14.7
3 1999 10 Biomass2 14.7
4 1999 15 Biomass2 15.6
On Sun, Nov 8, 2009 at 7:38 PM, znd <zackdaugherty at mail.com> wrote:
>
> Ah, I believe I constructed my *.csv wrong in that I only had 1 observation
> within groups whereas I needed at least 2.
>
> Originally I had:
>
> Year Depth Biomass1 Biomass2
> 1999 10 14.3 14.7
> 1999 15 14.7 15.6
> etc.
>
> but I switched this to:
>
> Year Depth Biomass
> 1999 10 14.3
> 1999 10 14.7
> 1999 15 15.1
> 1999 15 15.6
>
> I believe this may be the appropriate way to collapse my biomass data in
> order to perform a 2-way anova.
>
> If not feel free comment and thanks for the help.
> --
> View this message in context: http://old.nabble.com/Simple-2-Way-Anova-issue-in-R-tp26258684p26259649.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help
mailing list