Having this error"(Error in if (TTB[i] <= ACT[i]) { : missing value where TRUE/FALSE needed)", como elimino el error ?.

GRACIAS , Es que quisiera eliminarle el is.na y no puedo , cada vez qe lo hago me sale ese error .

Your code runs fine for me. Is it possible that you had forgotten to wrap TTB[i] and ACT[i] in is.na before you ran the code? The reason that I guess that is because when you get to your for loop, ACT == TC, which means that ACT == 10. So on the second iteration of your loop, you would be evaluating if(TTB[2] <= ACT[2]), which would result in the error that you mentioned.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.