grapes-sum-grapes function

Numerical and Symbolic Sum

Numerical and Symbolic Sum

Elementwise sum of numeric or character arrays.

x %sum% y

Arguments

  • x: numeric or character array.
  • y: numeric or character array.

Returns

array.

Examples

### vector x <- c("a+1","b+2") x %sum% x ### matrix x <- matrix(letters[1:4], ncol = 2) x %sum% x ### array x <- array(letters[1:12], dim = c(2,2,3)) y <- array(1:12, dim = c(2,2,3)) x %sum% y

References

Guidotti E (2022). "calculus: High-Dimensional Numerical and Symbolic Calculus in R." Journal of Statistical Software, 104(5), 1-37. tools:::Rd_expr_doi("10.18637/jss.v104.i05")

See Also

Other basic arithmetic: %diff%(), %div%(), %dot%(), %inner%(), %kronecker%(), %outer%(), %prod%()

  • Maintainer: Emanuele Guidotti
  • License: GPL-3
  • Last published: 2023-03-09