Hello all,
I am trying to use the function outer() together with max() to find the maximum between every pair of values in matrix form.
I will use a simple example:
x = 1:4
y = 1:4
outer(x, y, FUN="max")
However, what I get is an error.
Is there any way in which I can do this operation in R?
Thanks in advance for any help!