Search notes:
R statements
if
switch
Looping
R has three statements for
explicit
looping over a piece of code:
for
,
while
and
repeat
.
Within the loops,
next
and
break
can be used.
Implicit
looping is performed with statements like
sapply()
etc.
See also the
foreach
package
No return statement
R does not have a
return
statement,
but a
return
function(?)
.
Index