Flow control statements are used to repeat a series of tasks a number of times or to direct flow based on a logical object. For persons who came into programming in the age of FORTRAN and BASIC, using loops is very comfortable. (In looping, either an index is used to apply a group of expressions to each element of an object or a group of expressions is repeated until a condition is met.) In R, the better choice, if possible, is to select multiple indices ...
12. Flow Control
Get R 4 Quick Syntax Reference: A Pocket Guide to the Language, API's and Library now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.