R语言--控制流和自定义函数(if、else、while、switch)
1 控制流 1.1 重复和循环 方式一:for() for (i in 1:10) print("hello") 方式二:while() while(i>0){ print(" ...
1 控制流 1.1 重复和循环 方式一:for() for (i in 1:10) print("hello") 方式二:while() while(i>0){ print(" ...