matSum: Element-wise sum of matrices

Description Usage Arguments Details Author(s) Examples

Description

matSum returns the element-wise sum of matrices.

Usage

1
matSum(..., na.rm = F)

Arguments

...

numeric matrices of the same dimensions or a list of matrices of same dimensions.

na.rm

logical. Should missing values (including NaN) be removed?

Details

The matrices should have the same dimensions.

Author(s)

Marc Choisy

Examples

1
2
3
(a <- matrix(sample(30),6))
(b <- matrix(sample(30),6))
matSum(a,b)

choisy/marc documentation built on May 13, 2019, 5:31 p.m.