I am a little confused about using short and long forms of logical operators in R.
If I have the following values
A <- FALSE B <- TRUE X <- 3 Y <- 2
I would like to evaluate NOT (A) OR NOT (B) AND X <Y
I expect FALSE given the parameters
This is the expression I found to evaluate this in R , so it returns FALSE as I expect:
Is it possible to eliminate the repeated comparison X < Y ?
source share