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
is.na before you ran the code? The reason that I guess that is because when you get to your
ACT == TC, which means that
ACT == 10. So on the second iteration of your loop, you would be evaluating
if(TTB <= ACT), 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.