实例 R 语言 逻辑或运算符 (&)

x
 
a <- 200
b <- 33
c <- 500
if (a > b | a > c){
  print("At least one of the conditions is true")
}
                    

输出结果

[1] "At least one of the conditions is true"