expandedDim {implicitExpansion} | R Documentation |
Implied Dimension of a set of Arrays
Description
Get the dimension implied by a set of arrays as used in implicit expansion.
Usage
expandedDim(..., arrays = list(), allowRecycling = FALSE)
Arguments
... |
Objects that are coerced to arrays. |
arrays |
A list of objects that are coerced to arrays. |
allowRecycling |
Whether to allow recycling of elements in each dimension. |
Details
Both the arrays in ...
and arrays
are considered by concatenating them with c(list(...), arrays)
.
Throws an error if the arrays are not compatible.
Value
A numberical vector containing the expanded dimension implied by the arrays.
See Also
Examples
x <- 1:3
y <- t(4:5)
z <- array(0, c(1,1,6))
expandedDim(x, y, z)
[Package implicitExpansion version 0.1.0 Index]