View source: R/compiler-AxisNames.R
| as_iterables | R Documentation |
This function converts an object into a list of iterables, where each iterable is a list of elements. The function is generic and can be extended for different classes.
as_iterables(x, ...)
x |
the input object to be converted |
... |
additional arguments (not used) |
a list of iterables, where each iterable is a list of elements
This method converts an AxisNames object into a list of iterables.
Each element in the AxisNames is processed to extract its name or
constant value. If the element is a ConstantAstNode with a count of
1, it is converted to an empty list. Otherwise, it is wrapped in
a list. If the element is a NamedAxisAstNode, its name is extracted.
Regular AxisNames that are nested will be unclassed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.