This function returns the difference between two vectors if they have the same length. If the second vector is missing, the first one is returned

getDiff(x, y)

Arguments

x

First vector

y

Second vector