> So, if i check what is happening: > >> which( is.na(spercysts_vs_embryos), arr.ind=TRUE ) May the issue is not an NA but some non-integer number that sneaked in. Try which( spercysts_vs_embryos != round (spercysts_vs_embryos), arr.ind=TRUE )