search for: ycrit

Displaying 1 result from an estimated 1 matches for "ycrit".

Did you mean: scrit
2008 Jul 11
2
Help with error in "if then" statement
...by empirical data points while (i.e. using a while loop) the angle being measured is within certain bounds. Because the curve is circular I need to pars the data into basically an "upper" curve and "lower" curve. I tried to do this with an if statement, specifically: ycrit<-subset(data,subset=data$x==min(data$x) y.max<-length*sin(angle)+y.ref #length, angle and y.ref are given if(y.max<ycrit){ ........ } Now the problem: The while loop works for 4 iterations, until I get the error message: "Error in if (y.max < ycrit) { : missing value where TRU...