参考手册
参考手册
实例 R 语言 逻辑或运算符 (&)
源代码
运行代码
a <- 200 b <- 33 c <- 500 if (a > b | a > c){ print("At least one of the conditions is true") }
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"