Learn R Programming

implicitExpansion (version 0.1.0)

expandedDim: 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)

Value

A numberical vector containing the expanded dimension implied by the arrays.

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.

See Also

expandArray

Examples

Run this code
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