Description Usage Arguments Value Examples
Vector comprehension
iterates over an object, but the default
behavior may not be desirable for custom classes. iter
allows the
user to specify how the object behaves within a comprehension, or other loop
in the eList
package. Unless a method is specified for an object,
iter will attempt to convert it to a list except for atomic vectors.
1 | iter(x)
|
x |
object to be looped across |
a vector
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.