Marek is right, this is a data problem. Now be careful if you use [as.numeric (ants $ Turbidity], as it will always be positive. It gives factor levels (1 to length (ant turbidity)) rather than numerical factors.
:
tt <- as.numeric(as.character(ants$Turbidity))
which(!is.na(tt))
, . .
:
> Turbidity <- factor(c(1,2,3,4,5,6,7,8,9,0,"a"))
> tt <- as.numeric(as.character(Turbidity))
Warning message:
NAs introduced by coercion
> which(is.na(tt))
[1] 11
as.numeric(as.character(...)) , NA, . :
> Turbidity[tt > 5]
[1] 6 7 8 9 <NA>
Levels: 0 1 2 3 4 5 6 7 8 9 a