powered by
Get the dimension implied by a set of arrays as used in implicit expansion.
expandedDim(..., arrays = list(), allowRecycling = FALSE)
A numberical vector containing the expanded dimension implied by the arrays.
Objects that are coerced to arrays.
A list of objects that are coerced to arrays.
Whether to allow recycling of elements in each dimension.
Both the arrays in ... and arrays are considered by concatenating them with c(list(...), arrays). Throws an error if the arrays are not compatible.
...
arrays
c(list(...), arrays)
expandArray
x <- 1:3 y <- t(4:5) z <- array(0, c(1,1,6)) expandedDim(x, y, z)
Run the code above in your browser using DataLab