Displaying 1 result from an estimated 1 matches for "cpx_list".
Did you mean:
cpu_list
2008 Apr 29
5
If(cond) statement
...t work? I think I am following the
documentation for if(cond) statements, and I have tried wrapping the
cons.expr and alt.expr in {}, I get the same error. There is no example
in the help file, and this is not covered in the Introduction to R,
SimpleR or other tutorials I have looked into.
mxx=max(cpx_list$nMV);
mxy=max(trend_list$nMV);
if (mxx>mxy)
mxy=mxx
else
mxx=mxy
Error: unexpected 'else' in "else"
Why does this error message have the first 'else' in single quote and
second in double??