8.4 小结

  • 使用ifelse可以有条件地执行语句。
  • ifelse是它们所对应的向量化函数。
  • R有三种类型的循环:repeatwhilefor