R语言中的if-else语句写法 结构 1 : if() xx else yy 一行; 结构 2: if() {xx} else {yy} 或者 if(){ xx }else #此处不能两行写 yy 结构3: { if else } 结构三括号中 可以任意写