search for: hmwk1pt2

Displaying 1 result from an estimated 1 matches for "hmwk1pt2".

2009 Nov 08
2
Simple 2-Way Anova issue in R
...1 5.062 5.062 0.1952 0.6665 Gender:Dosage 1 0.063 0.063 0.0024 0.9617 Residuals 12 311.250 25.938 However, when I got to use my data that I made in csv format I have to tell R to interpret my factors which are year and depth as factors... datafilename="C:/Rclass/hmwk1pt2.csv" data.ex2=read.csv(datafilename,header=T) data.ex2$Year<-as.factor(data.ex2$Year) data.ex2$Depth<-as.factor(data.ex2$Depth) data.ex2 str(data.ex2) This outputs what I would expect: > str(data.ex2) 'data.frame':...