官术网_书友最值得收藏!

Basic Flow Control

Flow Control includes different kinds of loops that you can use in R, such as the if/else, for, and while loops. While many of the concepts are very similar to how flow control and loops are used in other programming languages, they may be written differently in R.

Generally speaking, most loops are not considered best practice for coding in R. Some alternatives to loops, especially for loops, include the apply family of functions and functions contained in the purrr package, which you are encouraged to look up and learn about after this book.
主站蜘蛛池模板: 五常市| 会同县| 宁蒗| 两当县| 邯郸县| 十堰市| 河间市| 张北县| 盐山县| 阳泉市| 衡水市| 凯里市| 巨野县| 桃园县| 郯城县| 彩票| 黄梅县| 永寿县| 苏州市| 清水河县| 邢台市| 龙岩市| 比如县| 车致| 扬中市| 南阳市| 大姚县| 玉屏| 大连市| 抚州市| 株洲市| 保靖县| 栾川县| 方城县| 皋兰县| 民丰县| 扎兰屯市| 和硕县| 巴青县| 万安县| 怀仁县|