This function does the element wise sum of two vectors.
my_sum(a, b)
It really is just an example function that is powered by the +
operator
from base::Arithmetic.
## Generate some input data
x <- 1:10
y <- 1:10
## Perform the element wise sum
my_sum(x, y)
#> [1] 2 4 6 8 10 12 14 16 18 20