[R] aov(HSuccess ~ different VegIndexes)

Jhope jeanwaijang at gmail.com
Mon Oct 8 06:39:53 CEST 2012


Hi R-listers, 

I would like to do an ANOVA with HSuccess ~ each individual Vegetation index
(0-5m, 6-10m, 11-15m, 16-20m, 21-25m, 26-30m, 31-35m) and alternatively
HSuccess ~ HTLIndex (-5-(-1m), 0-5m, 6-10m, 11-15m, 16-20m, 21-25m, 26-30m). 

I'm not sure how to write the script for it. I have tried: 

> summary(aov(HSuccess ~ ((data.to.analyze$Veg
> breaks=c(0,5,10,15,20,25,30,35)), data=data.to.analyze)
Error: unexpected symbol in "summary(aov(HSuccess ~ ((data.to.analyze$Veg
breaks"

AND

>summary(aov(HSuccess ~ VegIndex$0-5, VegIndex$6-10 + VegIndex$11-15 +
VegIndex$16-20 + VegIndex$21-25 + VegIndex$26-30 + VegIndex$31-35,
data=data.to.analyze)
Error: unexpected numeric constant in "summary(aov(HSuccess ~ VegIndex$0"

Any suggestions on how to do this? 

Jean



--
View this message in context: http://r.789695.n4.nabble.com/aov-HSuccess-different-VegIndexes-tp4645386.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list