I know that in Java it is often quite handy to do things like that
if(a!=0 && b/a>1){
...;
}
Java stops when the first part is already false. R does not do that, producing errors sometimes. So: Is there a possibility to make this code shorter:
if(exists("user_set_variable")){
if(user_set_variable < 3){
...
}
}
From
?'&&'you can findSo probably you’re looking for
&instead of&&. See these examples where two conditions are evaluated: