Nothing
#' Combine arrays along an existing axis
#'
#' `rray_combine()` joins one or more arrays along `.axis`. Dimensions on every
#' other axis are broadcast to common dimensions.
#'
#' @details
#' This function participates in rray's
#' [common name determination rules][faq-common-names]. Names on `.axis` are
#' never checked. They are pasted together from every input, with `""` for
#' inputs that have none.
#'
#' @param ... Arrays to combine.
#'
#' @param .axis The axis to combine along, given [by position][faq-axes]. Must
#' be between 1 and the greatest input dimensionality.
#'
#' @returns
#' An array with the following dimensions:
#' - Along `.axis`, the input dimensions are added together.
#' - Along all other axes, the common dimensions are taken via broadcasting.
#'
#' @export
#' @examples
#' x <- array(1:6, c(2, 3))
#' y <- array(7:12, c(2, 3))
#'
#' rray_combine(x, y, .axis = 1)
#' rray_combine(x, y, .axis = 2)
#'
#' # Missing trailing axes have an implicit dimension of 1
#' rray_combine(1:2, array(3:8, c(2, 3)), .axis = 2)
rray_combine <- function(..., .axis) {
.Call(ffi_rray_combine, list2(...), .axis, environment())
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.