Description Usage Arguments Value Examples
ifor
evaluates an expression within a for
loop, after applying
iter
to the sequence. ifor
also allows multiple indexes by
separating each variable name with a ".", such that ifor(x, i.j, ...)
is similar to for (i,j in x) ...
if for
loops accepted multiple
index values. See comprehension
for more details. Assignment to
a variable outside of the function can be accomplished through assign
or <<-
.
1 | ifor(ind, x, expr)
|
ind |
variable name whose values are updated each round in the loop. Separate names with "." to allow for multiple variables |
x |
sequence over which to loop |
expr |
expression that is evaluated each round within the loop |
NULL
invisibly
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.