[R] Learning ANOVA

Stephen Liu satimis at yahoo.com
Fri Aug 13 06:59:26 CEST 2010


Hi David,

Thanks for your advice.

The remaining commands will be;

### Create a side-by-side boxplot of the test01
boxplot(test01$DO ~ test01$Stream)

### Create an ANOVA table
dotest01.aov <-(test01$DO ~ test01$Stream)
summary(dotest01.aov)

### Conduct a Tukey's multiple comparison procedure
TukeyHSD(dotest01.aov)

Any advice?  TIA


B.R.
Stephen L






----- Original Message ----
From: David Winsemius <dwinsemius at comcast.net>
To: Stephen Liu <satimis at yahoo.com>
Cc: r-help at r-project.org
Sent: Fri, August 13, 2010 12:19:35 PM
Subject: Re: [R] Learning ANOVA


On Aug 12, 2010, at 11:34 PM, Stephen Liu wrote:

> Hi folks,
>
>
> File to be used is on;
> data(InsectSprays)
>
>
> I can't figure out where to insert it on following command;
> test01 <- read.csv(fil.choose(), header=TRUE)

Don't think that would work, even if you did spell file.choose()  
correctly.

?data

"Description
Loads specified data sets, or list the available data sets."


At the console you can just type:

  data(InsectSprays)  # and you have access to that object

If you want to make another copy I suppose you could then type

test01 <- InsectSprays

... but I don't see what you would gain by that.

--
David.





More information about the R-help mailing list