aMorph: Array Transformation

View source: R/arrays-core.R

aMorphR Documentation

Array Transformation

Description

Transform an array, keeping the desired indices and dimensions

Usage

aMorph(x, l, keep = TRUE, reorder = !keep)

Arguments

x

A vector or an array

l

A list whose components are named after some of the array dimensions and contain the indices to keep

keep

Boolean. Should the dimensions that are not in the list be summed over ?

reorder

Boolean. Should the array dimensions be permuted so that they match the order of the list ?

Value

An array containing only the specified components


GuillaumeBiessy/arrays documentation built on Dec. 23, 2024, 3:23 a.m.