sumKeepAttr.RdThis function returns the sum of an numeric array (e.g. vector or matrix) while keeping its attributes.
sumKeepAttr( x, keepNames = FALSE, na.rm = FALSE )an numeric array (e.g. vector or matrix).
logical. Should the name(s) of the element(s) ofx
be assigned to the returned sum?
(only relevant if codex has only one element).
logical. Passed to sum.
Should missing values be removed?
the sum (see sum).