dimanche 19 septembre 2021

How to fix " Error in if (tests[b] == i) { : missing value where TRUE/FALSE needed "

This is my current code. I keep getting that message and I don't know why

#vector of counts
testsob=numeric(11)
for(i in 0:10){
  for(b in 1:length(tests)){
   if (tests[b]==i){
      testsob[i+1]=testsob[i+1]+1
      {x=FALSE}
      }
  }
}

Aucun commentaire:

Enregistrer un commentaire