Description Usage Arguments Details Value See Also Examples
Since tidytensors are arrays, they support dimnames(). The usuall syntax dimnames(x) <- works; this function provides a Magritte-compatible regular function, set_dimnames(x, newnames) which returns a new tidytensor.
1 | set_dimnames(x, newnames, ...)
|
x |
input tidytensor to set dimnames on. |
newnames |
list of dimnames to assign. |
... |
additional arguments to be passed to or from methods (ignored). |
Setting dimnames with set_dimnames() preserves any ranknames present.
a tidytensor with dimnames set.
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.