aSums: Array Sum over Dimensions

View source: R/arrays-core.R

aSumsR Documentation

Array Sum over Dimensions

Description

Return an array summed over one or several dimensions

Usage

aSums(x, d, keep = TRUE, na.rm = FALSE)

Arguments

x

An array

d

Numeric or character vector. The dimensions to be considered.

keep

Boolean. Should those dimensions be kept or dropped in the final result. By default the sum is made over all dimensions that are not explicitely named.

na.rm

Should NA value be removed ? Default : FALSE

Value

An array or vector containing the sum over the undesired dimensions


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