Skip to content

conditonal "if"

3 messages · putri wikie, Wu Gong, Erik Iverson

#
On 07/30/2010 06:04 PM, putri wikie wrote:
R is telling you exactly why there is an error.  The "if" statement needs to 
evaluate to TRUE or FALSE, but it is evaluating to a missing value (e.g., NA). 
tau2ca is probably NA at that point.

Since you don't provide a reproducible example as the posting guide asks, I have 
no idea why it is missing.

 > Also, I just want to make sure whether my program below is right or
Since this is not self-contained, nor are your objectives stated, there is no 
way to tell you wheter or not the program is "correct".

There is surely a vectorized/list approach to what you want to do.