AxisNames: Construct an instance of an 'AxisNames' class

View source: R/compiler-AxisNames.R

AxisNamesR Documentation

Construct an instance of an AxisNames class

Description

This is a wrapper for a list(), but the elements may only be singular character(), ConstantAstNode() or other AstNode objects. (only 1 level of nesting allowed, as its essentially another representation of a OneSidedAstNode().

Note that when using c() on an AxisNames object, when the other object is another AxisNames(), the elements of that will simply be appended to the first object. To nest (in the case of a GroupAstNode), you must append a list(AxisNames(...)) to the first object instead.

Usage

AxisNames(...)

Arguments

...

a list of elements or arbitrary number of elements

Value

an AxisNames object, which is a list with a specific class


einops documentation built on Sept. 9, 2025, 5:29 p.m.