powered by
colSums(x)
rowSums(x)
apply(x, ., sum)
See https://lintr.r-lib.org/reference/matrix_apply_linter.
matrix_apply_linter
The name of the linter