Description Usage Arguments Details Value Examples
Create lists of elements using an expressive syntax. Internally nested for-loops are created and compiled that generate the list.
1 | gen_list(element_expr, ..., .compile = TRUE, .env = parent.frame())
|
element_expr |
an expression that will be collected |
... |
either a logical expression that returns a length 1 result. A named list of equal length sequences that are iterated over in parallel or a named parameter with an iterable sequence. |
.compile |
compile the resulting for loop to bytecode befor eval |
.env |
the parent environment in which all the elements are being evaluated. |
For parallel iterations all elements in the list
need to be of
equal length. This is not checked at runtime at the moment.
A list of all generated values. The element-type is determined by the
parameter element_expr
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.