powered by
Sum the entries of an expression
sum_entries(x, axis = NULL, keepdims = FALSE)
A SumEntries expression.
An Expression or numeric value.
NULL (sum all), 1 (row-wise, like apply(X,1,sum)), or 2 (column-wise, like apply(X,2,sum)).
Logical: if TRUE, keep the reduced dimension as size 1.