参考手册
参考手册
实例 R 语言 If 语句
源代码
运行代码
a <- 33 b <- 200 if (b > a) { print("b is greater than a") }
x
a
<-
33
b
<-
200
if
(
b
>
a
) {
print
(
"b is greater than a"
)
}
输出结果
[1] "b is greater than a"