csum: cowSums, but consistent with terminology

View source: R/matrix.R

csumR Documentation

cowSums, but consistent with terminology

Description

cowSums, but consistent with terminology

Usage

csum(x, na_rm = FALSE, dims = 1L)

Arguments

x

an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame. For .colSums() etc, a numeric, integer or logical matrix (or vector of length m * n).

na_rm

Boolean. Remove missing values?

dims

integer: Which dimensions are regarded as ‘rows’ or ‘columns’ to sum over. For row*, the sum or mean is over dimensions dims+1, ...; for col* it is over dimensions 1:dims.


D-Se/ergo documentation built on May 24, 2022, 5:20 p.m.