I am currently running ANOVA for a project at school that has a large number of possible runs (1400 or so) but some of them aren't able to run ANOVA in R. I wrote a script to run all the ANOVA's, but some of them will not run and the Rout file gives me
Error in contrasts<-
(*tmp*
, value = "contr.treatment") :
contrasts can be applied only to factors with 2 or more levels
Calls: aov ... model.matrix -> model.matrix.default -> contrasts<-
Execution halted
Is there any way to write the script that will make R continue the script despite the error?
My entire script, other then the file loading, attaching, creating a sink, library loading, etc is...
ss107927468.model<-aov(Race.5~ss107927468, data=snp1)
summary(ss107927468.model)
Any help would be appreciated.